- All Superinterfaces:
Listener
public interface OnWhatsappChats
-
Method Summary
Methods inherited from interface it.auties.whatsapp.listener.Listener
onAction, onAction, onChatRecentMessages, onChatRecentMessages, onChats, onContactPresence, onContactPresence, onContacts, onContacts, onDisconnected, onDisconnected, onFeatures, onFeatures, onLoggedIn, onLoggedIn, onMessageDeleted, onMessageDeleted, onMessageStatus, onMessageStatus, onMessageStatus, onMessageStatus, onMetadata, onMetadata, onNewContact, onNewContact, onNewMessage, onNewMessage, onNewStatus, onNewStatus, onNodeReceived, onNodeReceived, onNodeSent, onNodeSent, onSetting, onSetting, onSocketEvent, onSocketEvent, onStatus, onStatus
-
Method Details
-
onChats
Called whenSocket
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 useStore.chats()
. If you also need the messages to be loaded, please refer toOnChatRecentMessages.onChatRecentMessages(Chat)
. -
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.
-