[−][src]Enum telegram_bot_raw::types::message::MessageKind
Kind of the message.
Variants
Text message.
Fields of Text
data: StringActual UTF-8 text of the message, 0-4096 characters.
entities: Vec<MessageEntity>Special entities like usernames, URLs, bot commands, etc. that appear in the text
Message is an audio file.
Fields of Audio
data: AudioInformation about the file.
Message is a general file.
Fields of Document
Message is a photo.
Fields of Photo
Message is a sticker.
Fields of Sticker
data: StickerInformation about the sticker.
Message is a video.
Fields of Video
Message is a voice message.
Fields of Voice
data: VoiceInformation about the file.
Message is a video note.
Fields of VideoNote
data: VideoNoteInformation about the file.
Message is a shared contact.
Fields of Contact
data: ContactInformation about the contact.
Message is a shared location.
Fields of Location
data: LocationInformation about the location.
Message is a poll.
Fields of Poll
data: PollInformation about the poll.
Message is a venue.
Fields of Venue
data: VenueInformation about the venue.
New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
A member was removed from the group.
Fields of LeftChatMember
data: UserInformation about user (this member may be the bot itself).
New chat title.
Fields of NewChatTitle
data: StringA chat title was changed to this value.
New chat photo.
Service message: the chat photo was deleted.
Service message: the group has been created.
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.
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.
The group has been migrated to a supergroup.
Fields of MigrateToChatId
data: IntegerSupergroup chat identifier.
The supergroup has been migrated from a group.
Fields of MigrateFromChatId
data: IntegerGroup chat identifier.
Specified message was pinned.
Fields of PinnedMessage
data: Box<MessageOrChannelPost>Trait Implementations
impl Clone for MessageKind[src]
fn clone(&self) -> MessageKind[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for MessageKind[src]
impl PartialEq<MessageKind> for MessageKind[src]
fn eq(&self, other: &MessageKind) -> bool[src]
fn ne(&self, other: &MessageKind) -> bool[src]
impl PartialOrd<MessageKind> for MessageKind[src]
fn partial_cmp(&self, other: &MessageKind) -> Option<Ordering>[src]
fn lt(&self, other: &MessageKind) -> bool[src]
fn le(&self, other: &MessageKind) -> bool[src]
fn gt(&self, other: &MessageKind) -> bool[src]
fn ge(&self, other: &MessageKind) -> bool[src]
impl StructuralPartialEq for MessageKind[src]
Auto Trait Implementations
impl RefUnwindSafe for MessageKind[src]
impl Send for MessageKind[src]
impl Sync for MessageKind[src]
impl Unpin for MessageKind[src]
impl UnwindSafe for MessageKind[src]
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,
pub 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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,