whatsapp_bot_flutter_mobile

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

whatsapp bot flutter mobile

Whatsapp bot flutter Mobile #


Whatsapp bot using whatsapp web scraping
Getting Started #
This library is for adding Mobile (Android/Ios) support to whatsapp_bot_flutter,using flutter_inappwebview
Android/IOS setup #
To setup on Android , make sure to checkout flutter_inappwebview setup document for Android and IOS
Android sdk:minSdkVersion cannot be smaller than version 19
Usage #
First we have to get WhatsappClient using WhatsappBotFlutterMobile.connect method , we can get qrcode from onQrCode callback, this will return a qrString and ImageByte , we can use ImageBytes to show qr as Image widget , or we can convert qrCode String to QrCode widget by any library, or set linkWithPhoneNumber, and get code in onPhoneLinkCode callback to login with phone number and link code
WhatsappClient? whatsappClient = await WhatsappBotFlutterMobile.connect(
onConnectionEvent: (ConnectionEvent event) {
print(event.toString());
},
onQrCode: (String qr, Uint8List? imageBytes) {
// use imageBytes to display in flutter : Image.memory(imageBytes)
},
);
copied to clipboard
To run on desktop or pure dart projects, checkout complete docs here
Resources #
Thanks to wa-js for exporting functions from WhatsApp Web
And flutter_inappwebview for Headless WebView
Disclaimer #
This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates. The official WhatsApp website can be found at https://whatsapp.com. "WhatsApp" as well as related names, marks, emblems and images are registered trademarks of their respective owners.
Note #
Its just initial version, I can't guarantee you will not be blocked by using this method, try to avoid primary whatsapp numbers. WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.