whatsapp_bot_flutter library
Classes
- CallEvent
- Chat
- LastReceivedKey
- Message
- MessageButtons
- MessageId
- QrCodeImage
- WhatsappBotFlutter
-
WhatsappBotFlutter for maintaining a single
Browser
andPage
instance with methods like connect and send - WhatsappBotUtils
- WhatsappClient
-
get WhatsappClient from
WhatsappBotFlutter.connect()
please do not try to create on your own - WhatsappLogger
- WhatsAppMetadata
- WpClientInterface
- WppAuth
- WppChat
- WppConnect
- WppContact
- WppEvents
- WppProfile
Enums
- ButtonType
- ConnectionEvent
- WhatsappEvent
- Whatsapp Events, https://wppconnect.io/wa-js/modules/ev.html Add more events if needed from the above link
- WhatsappExceptionType
- WhatsappFileType
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, {String? linkWithPhoneNumber = null, required dynamic onQrCode(String qrCodeUrl, Uint8List? qrCodeImage)?, dynamic onPhoneLinkCode(String code)?, 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