[][src]Struct telebot::objects::Message

pub struct Message {
    pub message_id: Integer,
    pub from: Option<User>,
    pub date: Integer,
    pub chat: Chat,
    pub forward_from: Option<User>,
    pub forward_from_chat: Option<Chat>,
    pub forward_from_message_id: Option<Integer>,
    pub forward_date: Option<Integer>,
    pub reply_to_message: Option<Box<Message>>,
    pub edit_date: Option<Integer>,
    pub text: Option<String>,
    pub entities: Option<Vec<MessageEntity>>,
    pub audio: Option<Audio>,
    pub document: Option<Document>,
    pub game: Option<Game>,
    pub photo: Option<Vec<PhotoSize>>,
    pub sticker: Option<Sticker>,
    pub video: Option<Video>,
    pub voice: Option<Voice>,
    pub caption: Option<String>,
    pub contact: Option<Contact>,
    pub location: Option<Location>,
    pub venue: Option<Venue>,
    pub new_chat_member: Option<User>,
    pub left_chat_member: Option<User>,
    pub new_chat_title: Option<String>,
    pub new_chat_photo: Option<Vec<PhotoSize>>,
    pub delete_chat_photo: Option<bool>,
    pub group_chat_created: Option<bool>,
    pub supergroup_chat_created: Option<bool>,
    pub channel_chat_created: Option<bool>,
    pub migrate_to_chat_id: Option<Integer>,
    pub migrate_from_chat_id: Option<Integer>,
    pub pinned_message: Option<Box<Message>>,
}

This object represents a message.

Fields

message_id: Integerfrom: Option<User>date: Integerchat: Chatforward_from: Option<User>forward_from_chat: Option<Chat>forward_from_message_id: Option<Integer>forward_date: Option<Integer>reply_to_message: Option<Box<Message>>edit_date: Option<Integer>text: Option<String>entities: Option<Vec<MessageEntity>>audio: Option<Audio>document: Option<Document>game: Option<Game>photo: Option<Vec<PhotoSize>>sticker: Option<Sticker>video: Option<Video>voice: Option<Voice>caption: Option<String>contact: Option<Contact>location: Option<Location>venue: Option<Venue>new_chat_member: Option<User>left_chat_member: Option<User>new_chat_title: Option<String>new_chat_photo: Option<Vec<PhotoSize>>delete_chat_photo: Option<bool>group_chat_created: Option<bool>supergroup_chat_created: Option<bool>channel_chat_created: Option<bool>migrate_to_chat_id: Option<Integer>migrate_from_chat_id: Option<Integer>pinned_message: Option<Box<Message>>

Trait Implementations

impl Debug for Message[src]

impl<'de> Deserialize<'de> for Message[src]

Auto Trait Implementations

impl Send for Message

impl Sync for Message

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]