[−][src]Enum telegram_bot_raw::types::message::MessageKind
Kind of the message.
Variants
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
Message is an audio file.
Fields of Audio
data: Audio
Information 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: Sticker
Information about the sticker.
Message is a video.
Fields of Video
Message is a voice message.
Fields of Voice
data: Voice
Information about the file.
Message is a video note.
Fields of VideoNote
data: VideoNote
Information about the file.
Message is a shared contact.
Fields of Contact
data: Contact
Information about the contact.
Message is a shared location.
Fields of Location
data: Location
Information about the location.
Message is a poll.
Fields of Poll
data: Poll
Information about the poll.
Message is a venue.
Fields of Venue
data: Venue
Information 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: User
Information about user (this member may be the bot itself).
New chat title.
Fields of NewChatTitle
data: String
A 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: Integer
Supergroup chat identifier.
The supergroup has been migrated from a group.
Fields of MigrateFromChatId
data: Integer
Group 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>,