[−][src]Enum tgbot::types::MessageData
Contains message data
Variants
Animation(Animation)
Message is an animation, information about the animation
Audio message
Fields of Audio
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
ConnectedWebsite(String)
The domain name of the website on which the user has logged in
Contact(Contact)
Message is a shared contact, information about the contact
Service message: the chat photo was deleted
Document message
Fields of Document
Message has no data
Game(Game)
Message is a game, information about the game
Service message: the group has been created
Invoice(Invoice)
Message is an invoice for a payment, information about the invoice
LeftChatMember(User)
A member was removed from the group (this member may be the bot itself)
Location(Location)
Message is a shared location, information about the location
MigrateFromChatId(Integer)
The supergroup has been migrated from a group with the specified identifier
MigrateToChatId(Integer)
The group has been migrated to a supergroup with the specified identifier
New members that were added to the group or supergroup (the bot itself may be one of these members)
A chat photo was change to this value
NewChatTitle(String)
A chat title was changed to this value
PassportData(PassportData)
Telegram Passport data
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
Message is a photo, available sizes of the photo
Poll(Poll)
Message is a native poll, information about the poll
Sticker(Sticker)
Message is a sticker, information about the sticker
SuccessfulPayment(SuccessfulPayment)
Message is a service message about a successful payment, information about the payment
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
Text(Text)
The actual UTF-8 text of the message, 0-4096 characters
Venue(Venue)
Message is a venue, information about the venue
Message is a video, information about the video
Fields of Video
VideoNote(VideoNote)
Message is a video note, information about the video message
Message is a voice message, information about the file
Fields of Voice
Trait Implementations
impl Clone for MessageData
[src]
fn clone(&self) -> MessageData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MessageData
[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageData
impl Send for MessageData
impl Sync for MessageData
impl Unpin for MessageData
impl UnwindSafe for MessageData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,