Struct telexide_fork::model::Message[][src]

pub struct Message {
Show 14 fields pub message_id: i64, pub from: Option<User>, pub sender_chat: Option<Chat>, pub date: DateTime<Utc>, pub chat: Chat, pub forward_data: Option<ForwardData>, pub reply_to_message: Option<Box<Message>>, pub via_bot: Option<User>, pub edit_date: Option<DateTime<Utc>>, pub author_signature: Option<String>, pub content: MessageContent, pub connected_website: Option<String>, pub passport_data: Option<PassportData>, 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: DateTime<Utc>

Date the message was sent

chat: Chat

Conversation the message belongs to

forward_data: Option<ForwardData>

Data about what message it was forwarded from

reply_to_message: Option<Box<Message>>via_bot: Option<User>

Bot through which the message was sent

edit_date: Option<DateTime<Utc>>

Date the message was last edited in Unix time

author_signature: Option<String>

Signature of the post author for messages in channels

content: MessageContent

The content of the message

connected_website: Option<String>

The domain name of the website on which the user has logged in.

passport_data: Option<PassportData>

Telegram Passport data

reply_markup: Option<InlineKeyboardMarkup>

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

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more