TDLib v0.0.2 TDLib.Object.Message View Source
Describes a message.
| Name | Type | Description |
|---|---|---|
| id | string | Unique message identifier. |
| sender_user_id | number | Identifier of the user who sent the message; 0 if unknown. It is unknown for channel posts. |
| chat_id | string | Chat identifier. |
| sending_state | MessageSendingState | Information about the sending state of the message; may be null. |
| is_outgoing | bool | True, if the message is outgoing. |
| can_be_edited | bool | True, if the message can be edited. |
| can_be_forwarded | bool | True, if the message can be forwarded. |
| can_be_deleted_only_for_self | bool | True, if the message can be deleted only for the current user while other users will continue to see it. |
| can_be_deleted_for_all_users | bool | True, if the message can be deleted for all users. |
| is_channel_post | bool | True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts. |
| contains_unread_mention | bool | True, if the message contains an unread mention for the current user. |
| date | number | Point in time (Unix timestamp) when the message was sent. |
| edit_date | number | Point in time (Unix timestamp) when the message was last edited. |
| forward_info | MessageForwardInfo | Information about the initial message sender; may be null. |
| reply_to_message_id | string | If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message. |
| ttl | number | For self-destructing messages, the message’s TTL (Time To Live), in seconds; 0 if none. TDLib will send updateDeleteMessages or updateMessageContent once the TTL expires. |
| ttl_expires_in | double | Time left before the message expires, in seconds. |
| via_bot_user_id | number | If non-zero, the user identifier of the bot through which this message was sent. |
| author_signature | string | For channel posts, optional author signature. |
| views | number | Number of times this message was viewed. |
| media_album_id | string | Unique identifier of an album this message belongs to. Only photos and videos can be grouped together in albums. |
| content | MessageContent | Content of the message. |
| reply_markup | ReplyMarkup | Reply markup for the message; may be null. |
More details on telegram’s documentation.