[−][src]Enum telegram_bot::types::message::MessageKind
Kind of the message.
Variants
TextText 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
AudioMessage is an audio file.
Fields of Audio
data: AudioInformation about the file.
DocumentMessage is a general file.
Fields of Document
PhotoMessage is a photo.
Fields of Photo
StickerMessage is a sticker.
Fields of Sticker
data: StickerInformation about the sticker.
VideoMessage is a video.
Fields of Video
VoiceMessage is a voice message.
Fields of Voice
data: VoiceInformation about the file.
VideoNoteMessage is a video note.
Fields of VideoNote
data: VideoNoteInformation about the file.
ContactMessage is a shared contact.
Fields of Contact
data: ContactInformation about the contact.
LocationMessage is a shared location.
Fields of Location
data: LocationInformation about the location.
VenueMessage is a venue.
Fields of Venue
data: VenueInformation about the venue.
NewChatMembersNew members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
Fields of NewChatMembers
LeftChatMemberA member was removed from the group.
Fields of LeftChatMember
data: UserInformation about user (this member may be the bot itself).
NewChatTitleNew chat title.
Fields of NewChatTitle
data: StringA chat title was changed to this value.
NewChatPhotoNew chat photo.
Fields of NewChatPhoto
DeleteChatPhotoService message: the chat photo was deleted.
GroupChatCreatedService message: the group has been created.
SupergroupChatCreatedService 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.
ChannelChatCreatedService 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.
MigrateToChatIdThe group has been migrated to a supergroup.
Fields of MigrateToChatId
data: i64Supergroup chat identifier.
MigrateFromChatIdThe supergroup has been migrated from a group.
Fields of MigrateFromChatId
data: i64Group chat identifier.
PinnedMessageSpecified message was pinned.
Fields of PinnedMessage
data: Box<MessageOrChannelPost>Trait Implementations
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 Clone for MessageKind[src]
fn clone(&self) -> MessageKind[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for MessageKind[src]
Auto Trait Implementations
impl Unpin for MessageKind
impl Sync for MessageKind
impl Send for MessageKind
impl RefUnwindSafe for MessageKind
impl UnwindSafe for MessageKind
Blanket Implementations
impl<T> From<T> for T[src]
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> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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>,
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> 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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,