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: i64
Message identifier, unique for the chat to which the message belongs
sender_user_id: i32
Identifier of the user who sent the message; 0 if unknown. It is unknown for channel posts
chat_id: i64
Chat identifier
sending_state: Option<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: i32
Point in time (Unix timestamp) when the message was sent
edit_date: i32
Point 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: i64
If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message
ttl: i32
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: f64
Time left before the message expires, in seconds
via_bot_user_id: i32
If non-zero, the user identifier of the bot through which this message was sent
For channel posts, optional author signature
views: i32
Number of times this message was viewed
media_album_id: i64
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: Option<ReplyMarkup>
Reply markup for the message; may be null