whatsapp_bot_flutter library

Classes

CallEvent
Message
MessageButtons
MessageId
QrCodeImage
WhatsappBotFlutter
WhatsappBotFlutter for maintaining a single Browser and Page instance with methods like connect and send
WhatsappBotUtils
WhatsappClient
get WhatsappClient from WhatsappBotFlutter.connect() please do not try to create on your own
WhatsappEvent
Whatsapp Events, https://wppconnect.io/wa-js/modules/ev.html Add more events if needed from the above link
WhatsappLogger
WhatsAppMetadata
WpClientInterface
WppAuth
WppChat
WppConnect
WppContact
WppEvents
WppProfile

Extensions

JsParser on dynamic
Use JsParse extension on data we pass in Javascript string

Functions

base64ToMap(String base64String) Map<String, dynamic>
getMimeType(WhatsappFileType fileType, String? fileName, List<int> bytes) String
getMimeType returns default mimeType
parseGroup(String phone) String
parseGroup will try to convert group number in required format
parsePhone(String phone) String
parsePhone will try to convert phone number in required format
validateConnection(WpClientInterface wpClient) Future
waitForLogin(WpClientInterface wpClient, {required dynamic onQrCode(String qrCodeUrl, Uint8List? qrCodeImage)?, int waitDurationSeconds = 60, dynamic onConnectionEvent(ConnectionEvent)?}) Future
waitForLogin will either complete with successful login or failed with timeout exception this method will automatically try to get the qrCode also it will make sure that we get the latest qrCode

Typedefs

OnNewEventFromListener = dynamic Function(String eventName, dynamic eventData)
Interface for creating a Whatsapp Client

Exceptions / Errors

WhatsappException