-
class
Facebook.message.Attachments(attachment)[source]¶ Bases:
objectThis class contains the type of the attachments and their payload
-
type¶ str – The type of attachment. Will be one of many type : location, image,video,audio or file.
-
url¶ str – Optional.URL of the image,video,audio or file.
-
coordinates_lat¶ int – Optional.latitude of the coordinate of the location received.
-
coordinates_long¶ int – Optional.longitude of the coordinate of the location.
-
-
class
Facebook.message.Delivered(messaging)[source]¶ Bases:
objectMessage Delivered callback
For more info go to https://developers.facebook.com/docs/messenger-platform/webhook-reference/message-delivered
-
mids¶ List containing message IDs of messages that were delivered. Field may not be present.
-
watermark¶ All messages that were sent before this timestamp were delivered.
-
seq¶ Sequence number.
If a delivery callback is received then it will be stored otherwise delivery will be none
-
-
class
Facebook.message.Echo(messaging)[source]¶ Bases:
objectMessage Echo callback
For more info go to https://developers.facebook.com/docs/messenger-platform/webhook-reference/message-echo
-
class
Facebook.message.Message(data)[source]¶ Bases:
objectParameters: data (Dict) – Message containing callback from facebook i.e. sender_id,recipient_id,message etc. -
user_id( obj:’int’) user id of the facebook user.
-
page_id( obj:’int’) page id of the recipient bot.
-
-
class
Facebook.message.Read(messaging)[source]¶ Bases:
objectMessage Read Callback
For more info go to https://developers.facebook.com/docs/messenger-platform/webhook-reference/message-read
If a read callback is received then it will be stored otherwise read will be none
-
class
Facebook.message.Received(messaging)[source]¶ Bases:
objectMessage Received callback
This class stores the text or attachment sent by facebook in the callback.
-
mid( obj:’str’) Message id of the message received. Be it either text or attachment.
-
text( obj:’str’): Optional.stores the text of the message if received(otherwise none).
-
attachments( obj:’list’): Optional.list of instance of the attachment class.
-
quick_reply_payload¶ Optional.The data received in the callback. It is received when quick replies are tapped and it’s content depends on the postback data sent in developer payload.
-
postback_payload¶ Optional.The postback data received in the callback
For more info go to https://developers.facebook.com/docs/messenger-platform/webhook-reference/message
-