Struct wdg_telegram_types::Message [] [src]

pub struct Message {
    pub _message_id: i32,
    pub _from: Option<User>,
    pub _date: i32,
    pub _chat: Chat,
    pub _forward_from: Option<User>,
    pub _forward_from_chat: Option<Chat>,
    pub _forward_from_message_id: Option<i32>,
    pub _forward_signature: Option<String>,
    pub _forward_date: Option<i32>,
    pub _reply_to_message: Option<Box<Message>>,
    pub _edit_date: Option<i32>,
    pub _author_signature: Option<String>,
    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 _video_note: Option<VideoNote>,
    pub _caption: Option<String>,
    pub _contact: Option<Contact>,
    pub _location: Option<Location>,
    pub _venue: Option<Venue>,
    pub _new_chat_members: Option<Vec<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<i32>,
    pub _migrate_from_chat_id: Option<i32>,
    pub _pinned_message: Option<Box<Message>>,
    pub _invoice: Option<Invoice>,
    pub _successful_payment: Option<SuccessfulPayment>,
}

This object represents a message.

Fields

Unique message identifier inside this chat

Optional. Sender, empty for messages sent to channels

Date the message was sent in Unix time

Conversation the message belongs to

Optional. For forwarded messages, sender of the original message

Optional. For messages forwarded from channels, information about the original channel

Optional. For messages forwarded from channels, identifier of the original message in the channel

Optional. For messages forwarded from channels, signature of the post author if present

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

Optional. 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.

Optional. Date the message was last edited in Unix time

Optional. Signature of the post author for messages in channels

Optional. For text messages, the actual UTF-8 text of the message, 0-4096 characters.

Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text

Optional. Message is an audio file, information about the file

Optional. Message is a general file, information about the file

Optional. Message is a game, information about the game.

Optional. Message is a photo, available sizes of the photo

Optional. Message is a sticker, information about the sticker

Optional. Message is a video, information about the video

Optional. Message is a voice message, information about the file

Optional. Message is a video note, information about the video message

Optional. Caption for the document, photo or video, 0-200 characters

Optional. Message is a shared contact, information about the contact

Optional. Message is a shared location, information about the location

Optional. Message is a venue, information about the venue

Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)

Optional. A member was removed from the group, information about them (this member may be the bot itself)

Optional. A chat title was changed to this value

Optional. A chat photo was change to this value

Optional. Service message: the chat photo was deleted

Optional. Service message: the group has been created

Optional. Service message: the supergroup has been created. This field can‘t be received in a message coming through updates, because bot can’t be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.

Optional. Service message: the channel has been created. This field can‘t be received in a message coming through updates, because bot can’t be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.

Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

Optional. The supergroup has been migrated from a group with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.

Optional. Message is an invoice for a payment, information about the invoice. More about payments »

Optional. Message is a service message about a successful payment, information about the payment. More about payments