Chat Opened#
The ChatOpened
type is used to indicate that a user has opened a chat with the bot.
- class pywa.types.ChatOpened#
Represents a chat opened in the first time by a user.
If the user deletes the chat and opens it again, this event will be triggered again.
Read more at developers.facebook.com.
- Variables:
id (str) – The message ID.
metadata (Metadata) – The metadata of the message (to which phone number it was sent).
type (MessageType) – The message type (Always
MessageType.REQUEST_WELCOME
).from_user (User) – The user who opened the chat.
timestamp (datetime.datetime) – The timestamp when this message was sent.