pub struct Message {Show 13 fields
pub message_id: i64,
pub from: Option<User>,
pub date: i64,
pub text: Option<String>,
pub chat: Chat,
pub forward_from: Option<User>,
pub forward_from_chat: Option<Chat>,
pub forward_from_message_id: Option<i64>,
pub forward_signature: Option<String>,
pub forward_sender_name: Option<String>,
pub forward_date: Option<i64>,
pub reply_to_message: Option<i64>,
pub sticker: Option<Sticker>,
}Fields§
§message_id: i64Unique message identifier inside this chat
from: Option<User>Sender, empty for messages sent to channels
date: i64Date the message was sent in Unix time
text: Option<String>Message text
chat: ChatConversation the message belongs to
- For sent messages, the first available identifier of the chat
- For messages forwarded to the chat, the identifier of the original chat
- For messages in channels, the identifier of the channel is contained in the
chat_idfield
forward_from: Option<User>For forwarded messages, sender of the original message
forward_from_chat: Option<Chat>For messages forwarded from channels, information about the original channel
forward_from_message_id: Option<i64>For messages forwarded from channels, identifier of the original message in the channel
forward_signature: Option<String>For messages forwarded from channels, signature of the post author if present
forward_sender_name: Option<String>Sender’s name for messages forwarded from users who disallow adding a link to their account in forwarded messages
forward_date: Option<i64>For forwarded messages, date the original message was sent in Unix time
reply_to_message: Option<i64>For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
sticker: Option<Sticker>Sticker for messages with a sticker