teamwire_api/message¶
Message¶
A message being exchanged in a chat
Attributes
chat: Chat object. The chat the message belongs tomid: unicode. The ID of the messagefrom_user: User object. The user who sent the messagetimestamp: integer (UTC timestamp - number of milliseconds since Jan 1, 1970). The timestamp of the messagetstamp_date: datetime. The timestamp of the message as a datetime objectis_alert: boolean. Whether this is an alert messagealert_type: AlertType. Type of alert (e.g. alert, announcement, note)reply_to: unicode, default None. The ID of another message, this is a reply tomsg: unicode, can be None. The text body of the messageattachments: list of Attachment objects, can be None. A list of attachmentsdeleted: boolean. Whether the message has been deleted by the sendersender_display_name: unicode. A string representing an external sender name. If set, clients will show this as the sender name, instead of the bot namelink_preview:LinkPreview. Preview of link sent inside the message.
LinkPreview¶
Class representing a preview of the link sent inside the message.
Attributes
url: (string) the original URL being shared in the messagetitle: (string) website title (if present)description: (string) website description (if present)image: (string) thumbnail image url (if present)domain: (string) website domain