whatsapp_bot_flutter 2.0.1 copy "whatsapp_bot_flutter: ^2.0.1" to clipboard
whatsapp_bot_flutter: ^2.0.1 copied to clipboard

Whatsapp bot using puppeteer and whatsapp web scraping with flutter desktop/web and dart projects support

example/lib/main.dart

import 'dart:typed_data';
import 'package:whatsapp_bot_flutter/whatsapp_bot_flutter.dart';

void main(List<String> args) async {
  WhatsappBotUtils.enableLogs(true);

  WhatsappClient? client = await WhatsappBotFlutter.connect(
    onConnectionEvent: (ConnectionEvent event) {
      print(event.toString());
    },
    onQrCode: (String qr, Uint8List? imageBytes) {
      String qrText = WhatsappBotUtils.convertStringToQrCode(qr);
      print(qrText);
    },
  );

  // subscribe to connection events
  client?.connectionEventStream.listen((event) {
    print("ConnectionEvent : $event");
  });
}
64
likes
0
points
158
downloads

Publisher

verified publisherrohitsangwan.in

Weekly Downloads

Whatsapp bot using puppeteer and whatsapp web scraping with flutter desktop/web and dart projects support

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

puppeteer, whatsapp_bot_platform_interface

More

Packages that depend on whatsapp_bot_flutter