Struct telbot_types::message::Message[][src]

pub struct Message {
Show 18 fields pub message_id: i64, pub from: Option<User>, pub sender_chat: Option<Chat>, pub date: u64, 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<u64>, pub reply_to_message: Option<Box<Message>>, pub via_bot: Option<User>, pub edit_date: Option<u64>, pub media_group_id: Option<String>, pub author_signature: Option<String>, pub kind: MessageKind, pub reply_markup: Option<InlineKeyboardMarkup>,
}
Expand description

This object represents a message.

Fields

message_id: i64

Unique message identifier inside this chat

from: Option<User>

Sender, empty for messages sent to channels

sender_chat: Option<Chat>

Sender of the message, sent on behalf of a chat. The channel itself for channel messages. The supergroup itself for messages from anonymous group administrators. The linked channel for messages automatically forwarded to the discussion group

date: u64

Date the message was sent in Unix time

chat: Chat

Conversation the message belongs to

forward_from: Option<User>

For forwarded messages, sender of the original message

forward_from_chat: Option<Chat>

For messages forwarded from channels or from anonymous administrators, information about the original sender chat

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<u64>

For forwarded messages, date the original message was sent in Unix time

reply_to_message: Option<Box<Message>>

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.

via_bot: Option<User>

Bot through which the message was sent

edit_date: Option<u64>

Date the message was last edited in Unix time

media_group_id: Option<String>

The unique identifier of a media message group this message belongs to

author_signature: Option<String>

Signature of the post author for messages in channels, or the custom title of an anonymous group administrator

kind: MessageKind

Additional information about the message.

reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.

Implementations

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.