[−][src]Enum telegram_bot::types::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, Global>
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)
Fields of NewChatMembers
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: i64
Supergroup chat identifier.
The supergroup has been migrated from a group.
Fields of MigrateFromChatId
data: i64
Group chat identifier.
Specified message was pinned.
Fields of PinnedMessage
data: Box<MessageOrChannelPost, Global>
Trait Implementations
impl Clone for MessageKind
[src]
pub fn clone(&self) -> MessageKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MessageKind
[src]
impl MessageGetFiles for MessageKind
[src]
impl MessageText for MessageKind
[src]
impl PartialEq<MessageKind> for MessageKind
[src]
pub fn eq(&self, other: &MessageKind) -> bool
[src]
pub fn ne(&self, other: &MessageKind) -> bool
[src]
impl PartialOrd<MessageKind> for MessageKind
[src]
pub fn partial_cmp(&self, other: &MessageKind) -> Option<Ordering>
[src]
pub fn lt(&self, other: &MessageKind) -> bool
[src]
pub fn le(&self, other: &MessageKind) -> bool
[src]
pub fn gt(&self, other: &MessageKind) -> bool
[src]
pub 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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,