Struct telexide::model::Message [−][src]
pub struct Message {}Show 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>,
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
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
impl<'de> Deserialize<'de> for Message
[src]
impl<'de> Deserialize<'de> for Message
[src]fn deserialize<D>(deserializer: D) -> Result<Message, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl From<Message> for RawMessage
[src]
impl From<Message> for RawMessage
[src]fn from(message: Message) -> RawMessage
[src]
impl From<RawMessage> for Message
[src]
impl From<RawMessage> for Message
[src]fn from(raw: RawMessage) -> Message
[src]
impl StructuralPartialEq for Message
[src]
impl StructuralPartialEq for Message
[src]Auto Trait Implementations
impl RefUnwindSafe for Message
impl RefUnwindSafe for Message
impl UnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,