{"id":13550342,"url":"https://github.com/rohit-chouhan/whatsapp","last_synced_at":"2026-03-13T11:33:04.187Z","repository":{"id":61975209,"uuid":"500826045","full_name":"rohit-chouhan/whatsapp","owner":"rohit-chouhan","description":"A package for whatsapp business api, send messages, product, media, location through flutter app.","archived":false,"fork":false,"pushed_at":"2025-09-27T17:20:10.000Z","size":7922,"stargazers_count":39,"open_issues_count":5,"forks_count":21,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-03T09:06:29.310Z","etag":null,"topics":["android","dart","facebook","flutter","ios","whatsapp","whatsapp-api","whatsapp-automation","whatsapp-bot"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/whatsapp","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohit-chouhan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-07T12:13:37.000Z","updated_at":"2026-02-02T01:01:57.000Z","dependencies_parsed_at":"2024-08-01T12:18:03.394Z","dependency_job_id":"da507863-1d7f-4604-924a-da5521a1a553","html_url":"https://github.com/rohit-chouhan/whatsapp","commit_stats":{"total_commits":65,"total_committers":3,"mean_commits":"21.666666666666668","dds":0.4,"last_synced_commit":"8e0c7def9303cb6d039ad74ab3218b3b9c00a3a7"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rohit-chouhan/whatsapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-chouhan%2Fwhatsapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-chouhan%2Fwhatsapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-chouhan%2Fwhatsapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-chouhan%2Fwhatsapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohit-chouhan","download_url":"https://codeload.github.com/rohit-chouhan/whatsapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-chouhan%2Fwhatsapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30466314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","dart","facebook","flutter","ios","whatsapp","whatsapp-api","whatsapp-automation","whatsapp-bot"],"created_at":"2024-08-01T12:01:31.949Z","updated_at":"2026-03-13T11:33:04.156Z","avatar_url":"https://github.com/rohit-chouhan.png","language":"Dart","funding_links":["https://github.com/sponsors/rohit-chouhan)_"],"categories":["Dart"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/rohit-chouhan/whatsapp/main/img/whatsapp-flutter-banner-v4.png\" alt=\"WhatsApp Flutter Banner\"/\u003e\n\u003c/p\u003e\n\nThis Flutter package allows you to integrate the **WhatsApp Business API** into your Flutter applications. It enables sending `messages`, `media`, `templates`, managing `business information`, creating `interactives` and `flows`, sending `catalog messages`, and more. The package is updated to support the latest **WhatsApp Business API v23.0**.\n\n![Pub Likes](https://img.shields.io/pub/likes/whatsapp)\n![Pub Points](https://img.shields.io/pub/points/whatsapp)\n![Pub Monthly Downloads](https://img.shields.io/pub/dm/whatsapp)\n![GitHub Issues](https://img.shields.io/github/issues/rohit-chouhan/whatsapp)\n![GitHub PRs](https://img.shields.io/github/issues-pr/rohit-chouhan/whatsapp)\n![GitHub Forks](https://img.shields.io/github/forks/rohit-chouhan/whatsapp)\n\n[![Rohit Chouhan](https://user-images.githubusercontent.com/82075108/182797964-a92e0c59-b9ef-432d-92af-63b6475a4b1c.svg)](https://www.github.com/rohit-chouhan) \n_[![Sponsor](https://user-images.githubusercontent.com/82075108/182797969-11208ddc-b84c-4618-8534-18388d24ac18.svg)](https://github.com/sponsors/rohit-chouhan)_\n\n---\n\n## Documentation\n\nFull documentation for the WhatsApp Flutter package is available at [whatsapp-flutter.github.io](https://whatsapp-flutter.github.io).\n\nYou can switch the documentation version using the version selector at the top of the page (`version:`).  \n\nOther useful links:\n\n- [Official WhatsApp Flutter website](https://whatsapp-flutter.github.io)\n- [Initialization Guide](https://whatsapp-flutter.github.io/docs/initialization)\n- [Return Methods](https://whatsapp-flutter.github.io/docs/return-methods) – Learn how to handle API responses\n- [Method Usage](https://whatsapp-flutter.github.io/docs/method-usage) – Detailed usage instructions\n\n---\n\n## New Features in v4.0.0\n\n- **Performance Improvements** – Optimized core methods, now up to 3x faster than previous versions.\n- **Web Platform Support** – Now supports fully compatibility with Flutter Web for most features.\n- **Service-Specific Methods** – Each service now provides dedicated getters for cleaner and more explicit usage.\n- **Flow Messages** – Added support for interactive flow messages to improve user engagement.\n- **Catalog \u0026 Product Messages** – Send product details and catalog messages for e-commerce use cases.\n- **Resumable Uploads** – Support for creating and managing resumable upload sessions for large files.\n- **Error Handling Enhancements** – Improved and added `WhatsAppException` handling with detailed error types.\n- **Bug Fixes** – Resolved multiple issues affecting stability and reliability.\n- **API Upgrade** – Updated to support `WhatsApp Business API v23.0` (stable).\n\n---\n\n## Basic Usage\n\n```dart\n// Access token provided by Meta for WhatsApp Cloud API\nconst accessToken = 'YOUR_ACCESS_TOKEN';\n\n// Your WhatsApp Business phone number ID\nconst fromNumberId = 'YOUR_PHONE_NUMBER_ID';\n\n// Create WhatsApp client instance\nfinal whatsapp = WhatsApp(accessToken, fromNumberId);\n\n// Send a simple text message\nvar message = await whatsapp.sendMessage(\n  phoneNumber: 'RECEIPT_NUMBER', // Recipient's phone number in international format\n  text: 'Hi, how are you?',      // Message content\n);\n\nif (message.isSuccess()) {\n  // Message sent successfully\n  // Get and print the unique ID of the sent message\n  print('Message ID: ${message.getMessageId()}');\n  // Get and print the recipient number\n  print('Message sent to: ${message.getContactId()}');\n  // Get and print the full API response body\n  print('API Response: ${message.getFullResponse()}');\n} else {\n  // Message failed to send\n  // Print HTTP error code returned by the API\n  print('HTTP Code: ${message.getErrorCode()}');\n  // Print exact error details from WhatsApp Cloud API\n  print('API Error: ${message.getErrorMessage()}');\n  // Print type of request error (e.g., validation, authorization, etc.)\n  print('Request Error: ${message.getErrorType()}');\n}\n```\n\n## 📌 Looking for a Better Example?\n\n👉 Check out this **working example** here:  \n🔗 [pub.dev WhatsApp Example](https://pub.dev/packages/whatsapp/example)\n\n# Contributors\n\n[![chouhan-rahul](https://user-images.githubusercontent.com/82075108/193220114-cd307ff4-9176-448c-9be6-e8bdee70206d.svg)\n](https://github.com/chouhan-rahul)\n\nHave you found a bug or have a suggestion of how to enhance WhatsApp Package? Open an issue or pull request and we will take a look at it as soon as possible.\n\n# Report bugs or issues\n\nYou are welcome to open a _[ticket](https://github.com/rohit-chouhan/whatsapp/issues)_ on github if any problems arise. New ideas are always welcome.\n\n# Copyright and License\n\n\u003e Copyright © 2022 **[Rohit Chouhan](https://rohitchouhan.com)**. Licensed under the _[MIT LICENSE](https://github.com/rohit-chouhan/whatsapp/blob/main/LICENSE)_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit-chouhan%2Fwhatsapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohit-chouhan%2Fwhatsapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit-chouhan%2Fwhatsapp/lists"}