whatsapp_bot_flutter 2.1.1 copy "whatsapp_bot_flutter: ^2.1.1" to clipboard
whatsapp_bot_flutter: ^2.1.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");
  });
}
62
likes
160
pub points
79%
popularity

Publisher

verified publisherrohitsangwan.in

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

puppeteer, whatsapp_bot_platform_interface

More

Packages that depend on whatsapp_bot_flutter