Interface OnWhatsappChats

All Superinterfaces:
Listener

public interface OnWhatsappChats
  • Method Details

    • onChats

      void onChats(Whatsapp whatsapp)
      Called when Socket receives all the chats from WhatsappWeb's WebSocket. When this event is fired, it is guaranteed that all metadata excluding messages will be present. To access this data use Store.chats(). If you also need the messages to be loaded, please refer to OnChatRecentMessages.onChatRecentMessages(Chat).
      Specified by:
      onChats in interface Listener
      Parameters:
      whatsapp - an instance to the calling api
    • onQRCode

      default QrHandler onQRCode()
      Description copied from interface: Listener
      Called when the socket successfully establishes a connection with new secrets. By default, the QR code is printed to the console.
      Specified by:
      onQRCode in interface Listener
      Returns:
      a non-null handler to process the qr code