[−][src]Enum carapax::prelude::types::MessageData
Contains message data
Variants
Animation(Animation)
Message is an animation, information about the animation
Audio
Audio message
Fields of Audio
ChannelChatCreated
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
DeleteChatPhoto
Service message: the chat photo was deleted
Document
Document message
Fields of Document
Game(Game)
Message is a game, information about the game
GroupChatCreated
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(i64)
The supergroup has been migrated from a group with the specified identifier
MigrateToChatId(i64)
The group has been migrated to a supergroup with the specified identifier
NewChatMembers(Vec<User>)
New members that were added to the group or supergroup (the bot itself may be one of these members)
NewChatPhoto(Vec<PhotoSize>)
A chat photo was change to this value
NewChatTitle(String)
A chat title was changed to this value
PassportData(PassportData)
Telegram Passport data
PinnedMessage(Box<Message>)
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
Photo
Message is a photo, available sizes of the photo
Fields of Photo
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
SupergroupChatCreated
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
Video
Message is a video, information about the video
Fields of Video
VideoNote(VideoNote)
Message is a video note, information about the video message
Voice
Message is a voice message, information about the file
Fields of Voice
Trait Implementations
impl Debug for MessageData
[src]
impl Clone for MessageData
[src]
fn clone(&self) -> MessageData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for MessageData
impl Sync for MessageData
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,