Enum rust_tdlib::types::MessageContent [−][src]
pub enum MessageContent {}Show variants
MessageAnimation(MessageAnimation), MessageAudio(MessageAudio), MessageBasicGroupChatCreate(MessageBasicGroupChatCreate), MessageCall(MessageCall), MessageChatAddMembers(MessageChatAddMembers), MessageChatChangePhoto(MessageChatChangePhoto), MessageChatChangeTitle(MessageChatChangeTitle), MessageChatDeleteMember(MessageChatDeleteMember), MessageChatDeletePhoto(MessageChatDeletePhoto), MessageChatJoinByLink(MessageChatJoinByLink), MessageChatSetTtl(MessageChatSetTtl), MessageChatUpgradeFrom(MessageChatUpgradeFrom), MessageChatUpgradeTo(MessageChatUpgradeTo), MessageContact(MessageContact), MessageContactRegistered(MessageContactRegistered), MessageCustomServiceAction(MessageCustomServiceAction), MessageDice(MessageDice), MessageDocument(MessageDocument), MessageExpiredPhoto(MessageExpiredPhoto), MessageExpiredVideo(MessageExpiredVideo), MessageGame(MessageGame), MessageGameScore(MessageGameScore), MessageInvoice(MessageInvoice), MessageLocation(MessageLocation), MessagePassportDataReceived(MessagePassportDataReceived), MessagePassportDataSent(MessagePassportDataSent), MessagePaymentSuccessful(MessagePaymentSuccessful), MessagePaymentSuccessfulBot(MessagePaymentSuccessfulBot), MessagePhoto(MessagePhoto), MessagePinMessage(MessagePinMessage), MessagePoll(MessagePoll), MessageProximityAlertTriggered(MessageProximityAlertTriggered), MessageScreenshotTaken(MessageScreenshotTaken), MessageSticker(MessageSticker), MessageSupergroupChatCreate(MessageSupergroupChatCreate), MessageText(MessageText), MessageUnsupported(MessageUnsupported), MessageVenue(MessageVenue), MessageVideo(MessageVideo), MessageVideoNote(MessageVideoNote), MessageVoiceNote(MessageVoiceNote), MessageWebsiteConnected(MessageWebsiteConnected), // some variants omitted
Expand description
Contains the content of a message
Variants
MessageAnimation(MessageAnimation)
An animation message (GIF-style).
MessageAudio(MessageAudio)
An audio message
MessageBasicGroupChatCreate(MessageBasicGroupChatCreate)
A newly created basic group
MessageCall(MessageCall)
A message with information about an ended call
MessageChatAddMembers(MessageChatAddMembers)
New chat members were added
MessageChatChangePhoto(MessageChatChangePhoto)
An updated chat photo
MessageChatChangeTitle(MessageChatChangeTitle)
An updated chat title
MessageChatDeleteMember(MessageChatDeleteMember)
A chat member was deleted
MessageChatDeletePhoto(MessageChatDeletePhoto)
A deleted chat photo
MessageChatJoinByLink(MessageChatJoinByLink)
A new member joined the chat by invite link
MessageChatSetTtl(MessageChatSetTtl)
The TTL (Time To Live) setting messages in a secret chat has been changed
MessageChatUpgradeFrom(MessageChatUpgradeFrom)
A supergroup has been created from a basic group
MessageChatUpgradeTo(MessageChatUpgradeTo)
A basic group was upgraded to a supergroup and was deactivated as the result
MessageContact(MessageContact)
A message with a user contact
MessageContactRegistered(MessageContactRegistered)
A contact has registered with Telegram
MessageCustomServiceAction(MessageCustomServiceAction)
A non-standard action has happened in the chat
MessageDice(MessageDice)
A dice message. The dice value is randomly generated by the server
MessageDocument(MessageDocument)
A document message (general file)
MessageExpiredPhoto(MessageExpiredPhoto)
An expired photo message (self-destructed after TTL has elapsed)
MessageExpiredVideo(MessageExpiredVideo)
An expired video message (self-destructed after TTL has elapsed)
MessageGame(MessageGame)
A message with a game
MessageGameScore(MessageGameScore)
A new high score was achieved in a game
MessageInvoice(MessageInvoice)
A message with an invoice from a bot
MessageLocation(MessageLocation)
A message with a location
MessagePassportDataReceived(MessagePassportDataReceived)
Telegram Passport data has been received; for bots only
MessagePassportDataSent(MessagePassportDataSent)
Telegram Passport data has been sent
MessagePaymentSuccessful(MessagePaymentSuccessful)
A payment has been completed
MessagePaymentSuccessfulBot(MessagePaymentSuccessfulBot)
A payment has been completed; for bots only
MessagePhoto(MessagePhoto)
A photo message
MessagePinMessage(MessagePinMessage)
A message has been pinned
MessagePoll(MessagePoll)
A message with a poll
MessageProximityAlertTriggered(MessageProximityAlertTriggered)
A user in the chat came within proximity alert range
MessageScreenshotTaken(MessageScreenshotTaken)
A screenshot of a message in the chat has been taken
MessageSticker(MessageSticker)
A sticker message
MessageSupergroupChatCreate(MessageSupergroupChatCreate)
A newly created supergroup or channel
MessageText(MessageText)
A text message
MessageUnsupported(MessageUnsupported)
Message content that is not supported in the current TDLib version
MessageVenue(MessageVenue)
A message with information about a venue
MessageVideo(MessageVideo)
A video message
MessageVideoNote(MessageVideoNote)
A video note message
MessageVoiceNote(MessageVoiceNote)
A voice note message
MessageWebsiteConnected(MessageWebsiteConnected)
The current user has connected a website by logging in using Telegram Login Widget on it
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for MessageContent
impl Send for MessageContent
impl Sync for MessageContent
impl Unpin for MessageContent
impl UnwindSafe for MessageContent
Blanket Implementations
Mutably borrows from an owned value. Read more