fbbotw.post_text_list¶
-
fbbotw.
post_text_list
(fbid, messages=None, messaging_type=’RESPONSE’, tag=None)[source]¶ Sends a serie of messages from a list of texts. The messages will be sent in the same order as the list items.
Usage: >>> # Set the user fbid and the list of texts to send. >>> fbid = "<user page scoped id>" >>> texts = [ "Hi, Todays forecast is:", "Morning: Sunny - 27C", "Afternoon: Sunny - 25C", "Night: Cloudy - 18C" ] >>> response = fbbotw.post_text_list( fbid=fbid, messages=texts )
Parameters: - fbid (str) – User id to send the text list.
- messages (list) – A list of messages to be sent.
- messaging_type (str) – Identifies the message type from: RESPONSE, UPDATE AND MESSAGE_TAG (Default: RESPONSE, if MESSAGE_TAG, tag param is required)
- tag (str) – Tag classifying the message, must be one of the following tags
Returns: A list of Response objects for every message sent.