Enum telexide::model::MessageContent [−][src]
pub enum MessageContent {}Show variants
Text { content: String, entities: Vec<MessageEntity>, }, Audio { content: Audio, caption: Option<String>, caption_entities: Option<Vec<MessageEntity>>, }, Document { content: Document, caption: Option<String>, caption_entities: Option<Vec<MessageEntity>>, }, Animation { content: Animation, caption: Option<String>, caption_entities: Option<Vec<MessageEntity>>, }, Video { content: Video, caption: Option<String>, caption_entities: Option<Vec<MessageEntity>>, media_group_id: Option<String>, }, Voice { content: Voice, caption: Option<String>, caption_entities: Option<Vec<MessageEntity>>, }, Photo { content: Vec<PhotoSize>, caption: Option<String>, caption_entities: Option<Vec<MessageEntity>>, media_group_id: Option<String>, }, Game { content: Game, }, Sticker { content: Sticker, }, VideoNote { content: VideoNote, }, Contact { content: Contact, }, Location { content: Location, }, Venue { content: Venue, }, Poll { content: Poll, }, Dice { content: Dice, }, NewChatMembers { content: Vec<User>, }, LeftChatMember { content: User, }, NewChatTitle { content: String, }, NewChatPhoto { content: Vec<PhotoSize>, }, MessageAutoDeleteTimerChanged { content: MessageAutoDeleteTimerChanged, }, MigrateToChatID { content: i64, }, MigrateFromChatID { content: i64, }, PinnedMessage { content: Box<Message>, }, Invoice { content: Invoice, }, SuccessfulPayment { content: SuccessfulPayment, }, ProximityAlertTriggered { content: ProximityAlertTriggered, }, VoiceChatScheduled { content: VoiceChatScheduled, }, VoiceChatStarted { content: VoiceChatStarted, }, VoiceChatEnded { content: VoiceChatEnded, }, VoiceChatParticipantsInvited { content: VoiceChatParticipantsInvited, }, DeleteChatPhoto, GroupChatCreated, SupergroupChatCreated, ChannelChatCreated, Unknown,
The content of a Message
Variants
Show fields
Fields of Text
content: String
The 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
Show fields
Fields of Audio
content: Audio
Information about the audio file
The caption, 0-1024 characters
Special entities like usernames, URLs, bot commands, etc. that appear in the caption
Show fields
Fields of Document
content: Document
Information about the file
The caption, 0-1024 characters
Special entities like usernames, URLs, bot commands, etc. that appear in the caption
Show fields
Fields of Animation
content: Animation
Information about the animation.
The caption, 0-1024 characters
Special entities like usernames, URLs, bot commands, etc. that appear in the caption
Show fields
Show fields
Fields of Voice
content: Voice
Information about the voice file
The caption, 0-1024 characters
Special entities like usernames, URLs, bot commands, etc. that appear in the caption
Show fields
Show fields
Fields of Game
content: Game
Information about the game
Show fields
Fields of Sticker
content: Sticker
Information about the sticker
Show fields
Fields of VideoNote
content: VideoNote
Information about the video message
Show fields
Fields of Contact
content: Contact
Information about the shared contact
Show fields
Fields of Location
content: Location
Information about the shared location
Show fields
Fields of Venue
content: Venue
Information about the venue
Show fields
Fields of Poll
content: Poll
Information about the native poll
Show fields
Fields of Dice
content: Dice
a dice with a random value from 1 to 6
Show fields
Show fields
Fields of LeftChatMember
content: User
A member was removed from the group, information about them (this member may be the bot itself)
Show fields
Fields of NewChatTitle
content: String
A chat title was changed to this value
Show fields
Fields of MessageAutoDeleteTimerChanged
content: MessageAutoDeleteTimerChanged
Service message: auto-delete timer settings changed in the chat
Show fields
Fields of MigrateToChatID
content: i64
The group has been migrated to a supergroup with the specified identifier.
Show fields
Fields of MigrateFromChatID
content: i64
The supergroup has been migrated from a group with the specified identifier.
Show fields
Show fields
Show fields
Fields of SuccessfulPayment
content: SuccessfulPayment
Message is a service message about a successful payment, information about the payment.
Show fields
Fields of ProximityAlertTriggered
content: ProximityAlertTriggered
Service message. A user in the chat triggered another user’s proximity alert while sharing Live Location.
Show fields
Fields of VoiceChatScheduled
content: VoiceChatScheduled
Service message: voice chat scheduled
Show fields
Fields of VoiceChatStarted
content: VoiceChatStarted
Service message: voice chat started
Show fields
Fields of VoiceChatEnded
content: VoiceChatEnded
Service message: voice chat ended
Show fields
Fields of VoiceChatParticipantsInvited
content: VoiceChatParticipantsInvited
Service message: new participants invited to a voice chat
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 the very first message in a channel.
Received a message with an unknown content
Trait Implementations
impl Clone for MessageContent
[src]
impl Clone for MessageContent
[src]fn clone(&self) -> MessageContent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<MessageContent> for MessageContent
[src]
impl PartialEq<MessageContent> for MessageContent
[src]fn eq(&self, other: &MessageContent) -> bool
[src]
fn ne(&self, other: &MessageContent) -> bool
[src]
impl StructuralPartialEq for MessageContent
[src]
impl StructuralPartialEq for MessageContent
[src]Auto Trait Implementations
impl RefUnwindSafe for MessageContent
impl RefUnwindSafe for MessageContent
impl Send for MessageContent
impl Send for MessageContent
impl Sync for MessageContent
impl Sync for MessageContent
impl Unpin for MessageContent
impl Unpin for MessageContent
impl UnwindSafe for MessageContent
impl UnwindSafe for MessageContent
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> Instrument 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> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,