TDLib v0.0.2 TDLib.Object.Message View Source

Describes a message.

NameTypeDescription
idstringUnique message identifier.
sender_user_idnumberIdentifier of the user who sent the message; 0 if unknown. It is unknown for channel posts.
chat_idstringChat identifier.
sending_stateMessageSendingStateInformation about the sending state of the message; may be null.
is_outgoingboolTrue, if the message is outgoing.
can_be_editedboolTrue, if the message can be edited.
can_be_forwardedboolTrue, if the message can be forwarded.
can_be_deleted_only_for_selfboolTrue, if the message can be deleted only for the current user while other users will continue to see it.
can_be_deleted_for_all_usersboolTrue, if the message can be deleted for all users.
is_channel_postboolTrue, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts.
contains_unread_mentionboolTrue, if the message contains an unread mention for the current user.
datenumberPoint in time (Unix timestamp) when the message was sent.
edit_datenumberPoint in time (Unix timestamp) when the message was last edited.
forward_infoMessageForwardInfoInformation about the initial message sender; may be null.
reply_to_message_idstringIf non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message.
ttlnumberFor 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_indoubleTime left before the message expires, in seconds.
via_bot_user_idnumberIf non-zero, the user identifier of the bot through which this message was sent.
author_signaturestringFor channel posts, optional author signature.
viewsnumberNumber of times this message was viewed.
media_album_idstringUnique identifier of an album this message belongs to. Only photos and videos can be grouped together in albums.
contentMessageContentContent of the message.
reply_markupReplyMarkupReply markup for the message; may be null.

More details on telegram’s documentation.