@aiteq/messenger-bot > Webhook > Event
Events emitted on incoming messages.
- ATTACHMENT
- ATTACHMENT_AUDIO
- ATTACHMENT_FALLBACK
- ATTACHMENT_FILE
- ATTACHMENT_IMAGE
- ATTACHMENT_LOCATION
- ATTACHMENT_VIDEO
- GET_STARTED_BUTTON
- LOCATION_QUICK_REPLY
- MESSAGE_DELIVERED
- MESSAGE_ECHO
- MESSAGE_READ
- PERSISTENT_MENU
- POSTBACK
- POSTBACK_BUTTON
- TEXT_MESSAGE
- TEXT_QUICK_REPLY
Emitted when the incoming message contains an attachment of any type. This event is emitted after the attachment-specific event (ATTACHMENT_AUDIO
, ATTACHMENT_FALLBACK
, ATTACHMENT_FILE
, ATTACHMENT_IMAGE
, ATTACHMENT_LOCATION
or ATTACHMENT_VIDEO
). Thus, the receiving an attachment message causes emitting two events:
- an attachment-specific event (e.g.
ATTACHMENT_IMAGE
) - the
ATTACHMENT
event.
Emitted when the incoming message contains an audio file.
Emitted when the incoming message contains a fallback attachment.
Emitted when the incoming message contains a file attachment.
Emitted when the incoming message contains an image file.
Emitted when the incoming message contains a location.
Emitted when the incoming message contains a video file.
Emitted when the user tapped on the Get Started button.
Emitted when the user sent his location using Quick Reply button.
Emitted when a delivery confirmation is received.
Emitted when an echo message is received.
Emitted when a read confirmation is received.
Emitted when the user tapped on a persistent menu item.
Emitted when a postback message is received. This event is emitted after the source-specific event (POSTBACK_BUTTON
, GET_STARTED_BUTTON
, or PERSISTENT_MENU
). Thus, the receiving a postback message causes emitting two events:
- a source-specific event (e.g.
POSTBACK_BUTTON
) - the
POSTBACK
event.
Emitted when the user tapped on a postback button.
Emitted when a text message is received.
Emitted when the user tapped on a quick reply button.