Struct telegram_bot_fork::types::Message
source · pub struct Message {
pub id: MessageId,
pub from: User,
pub date: i64,
pub chat: MessageChat,
pub forward: Option<Forward>,
pub reply_to_message: Option<Box<MessageOrChannelPost, Global>>,
pub edit_date: Option<i64>,
pub kind: MessageKind,
}
Expand description
This object represents a chat message.
Fields§
§id: MessageId
Unique message identifier inside this chat.
from: User
Sender, can be empty for messages sent to channels.
date: i64
Date the message was sent in Unix time.
chat: MessageChat
Conversation the message belongs to.
forward: Option<Forward>
Information about the original message.
reply_to_message: Option<Box<MessageOrChannelPost, Global>>
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.
edit_date: Option<i64>
Date the message was last edited in Unix time.
kind: MessageKind
Kind of the message.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
source§fn deserialize<D>(
deserializer: D
) -> Result<Message, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Message, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialOrd<Message> for Message
impl PartialOrd<Message> for Message
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more