[−][src]Enum telegram_bot_fork::types::MessageKind
Kind of the message.
Variants
Text
Text message.
Fields of Text
data: String
Actual 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
Audio
Message is an audio file.
Fields of Audio
data: Audio
Information about the file.
Document
Message is a general file.
Fields of Document
Photo
Message is a photo.
Fields of Photo
Sticker
Message is a sticker.
Fields of Sticker
data: Sticker
Information about the sticker.
Video
Message is a video.
Fields of Video
Voice
Message is a voice message.
Fields of Voice
data: Voice
Information about the file.
VideoNote
Message is a video note.
Fields of VideoNote
data: VideoNote
Information about the file.
Contact
Message is a shared contact.
Fields of Contact
data: Contact
Information about the contact.
Location
Message is a shared location.
Fields of Location
data: Location
Information about the location.
Venue
Message is a venue.
Fields of Venue
data: Venue
Information about the venue.
NewChatMembers
New 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
LeftChatMember
A member was removed from the group.
Fields of LeftChatMember
data: User
Information about user (this member may be the bot itself).
NewChatTitle
New chat title.
Fields of NewChatTitle
data: String
A chat title was changed to this value.
NewChatPhoto
New chat photo.
Fields of NewChatPhoto
DeleteChatPhoto
Service message: the chat photo was deleted.
GroupChatCreated
Service message: the group has been created.
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.
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.
MigrateToChatId
The group has been migrated to a supergroup.
Fields of MigrateToChatId
data: i64
Supergroup chat identifier.
MigrateFromChatId
The supergroup has been migrated from a group.
Fields of MigrateFromChatId
data: i64
Group chat identifier.
PinnedMessage
Specified 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 Debug for MessageKind
[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
Auto Trait Implementations
impl Send for MessageKind
impl Sync for MessageKind
Blanket Implementations
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>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,