pub struct Message {Show 23 fields
    pub id: i64,
    pub sender_user_id: i32,
    pub chat_id: i64,
    pub sending_state: Option<MessageSendingState>,
    pub is_outgoing: bool,
    pub can_be_edited: bool,
    pub can_be_forwarded: bool,
    pub can_be_deleted_only_for_self: bool,
    pub can_be_deleted_for_all_users: bool,
    pub is_channel_post: bool,
    pub contains_unread_mention: bool,
    pub date: i32,
    pub edit_date: i32,
    pub forward_info: Option<MessageForwardInfo>,
    pub reply_to_message_id: i64,
    pub ttl: i32,
    pub ttl_expires_in: f64,
    pub via_bot_user_id: i32,
    pub author_signature: String,
    pub views: i32,
    pub media_album_id: i64,
    pub content: MessageContent,
    pub reply_markup: Option<ReplyMarkup>,
}Expand description
Describes a message
Fields§
§id: i64Message identifier, unique for the chat to which the message belongs
sender_user_id: i32Identifier of the user who sent the message; 0 if unknown. It is unknown for channel posts
chat_id: i64Chat identifier
sending_state: Option<MessageSendingState>Information about the sending state of the message; may be null
is_outgoing: boolTrue, if the message is outgoing
can_be_edited: boolTrue, if the message can be edited
can_be_forwarded: boolTrue, if the message can be forwarded
can_be_deleted_only_for_self: boolTrue, 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: boolTrue, if the message can be deleted for all users
is_channel_post: boolTrue, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts
contains_unread_mention: boolTrue, if the message contains an unread mention for the current user
date: i32Point in time (Unix timestamp) when the message was sent
edit_date: i32Point in time (Unix timestamp) when the message was last edited
forward_info: Option<MessageForwardInfo>Information about the initial message sender; may be null
reply_to_message_id: i64If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message
ttl: i32For 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: f64Time left before the message expires, in seconds
via_bot_user_id: i32If non-zero, the user identifier of the bot through which this message was sent
For channel posts, optional author signature
views: i32Number of times this message was viewed
media_album_id: i64Unique identifier of an album this message belongs to. Only photos and videos can be grouped together in albums
content: MessageContentContent of the message
reply_markup: Option<ReplyMarkup>Reply markup for the message; may be null