Enum rtdlib::types::MessageContent[][src]

pub enum MessageContent {
Show 40 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), 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), 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

An animation message (GIF-style).

Tuple Fields of MessageAnimation

0: MessageAnimation
MessageAudio

An audio message

Tuple Fields of MessageAudio

0: MessageAudio
MessageBasicGroupChatCreate

A newly created basic group

Tuple Fields of MessageBasicGroupChatCreate

0: MessageBasicGroupChatCreate
MessageCall

A message with information about an ended call

Tuple Fields of MessageCall

0: MessageCall
MessageChatAddMembers

New chat members were added

Tuple Fields of MessageChatAddMembers

0: MessageChatAddMembers
MessageChatChangePhoto

An updated chat photo

Tuple Fields of MessageChatChangePhoto

0: MessageChatChangePhoto
MessageChatChangeTitle

An updated chat title

Tuple Fields of MessageChatChangeTitle

0: MessageChatChangeTitle
MessageChatDeleteMember

A chat member was deleted

Tuple Fields of MessageChatDeleteMember

0: MessageChatDeleteMember
MessageChatDeletePhoto

A deleted chat photo

Tuple Fields of MessageChatDeletePhoto

0: MessageChatDeletePhoto

A new member joined the chat by invite link

Tuple Fields of MessageChatJoinByLink

0: MessageChatJoinByLink
MessageChatSetTtl

The TTL (Time To Live) setting messages in a secret chat has been changed

Tuple Fields of MessageChatSetTtl

0: MessageChatSetTtl
MessageChatUpgradeFrom

A supergroup has been created from a basic group

Tuple Fields of MessageChatUpgradeFrom

0: MessageChatUpgradeFrom
MessageChatUpgradeTo

A basic group was upgraded to a supergroup and was deactivated as the result

Tuple Fields of MessageChatUpgradeTo

0: MessageChatUpgradeTo
MessageContact

A message with a user contact

Tuple Fields of MessageContact

0: MessageContact
MessageContactRegistered

A contact has registered with Telegram

Tuple Fields of MessageContactRegistered

0: MessageContactRegistered
MessageCustomServiceAction

A non-standard action has happened in the chat

Tuple Fields of MessageCustomServiceAction

0: MessageCustomServiceAction
MessageDocument

A document message (general file)

Tuple Fields of MessageDocument

0: MessageDocument
MessageExpiredPhoto

An expired photo message (self-destructed after TTL has elapsed)

Tuple Fields of MessageExpiredPhoto

0: MessageExpiredPhoto
MessageExpiredVideo

An expired video message (self-destructed after TTL has elapsed)

Tuple Fields of MessageExpiredVideo

0: MessageExpiredVideo
MessageGame

A message with a game

Tuple Fields of MessageGame

0: MessageGame
MessageGameScore

A new high score was achieved in a game

Tuple Fields of MessageGameScore

0: MessageGameScore
MessageInvoice

A message with an invoice from a bot

Tuple Fields of MessageInvoice

0: MessageInvoice
MessageLocation

A message with a location

Tuple Fields of MessageLocation

0: MessageLocation
MessagePassportDataReceived

Telegram Passport data has been received; for bots only

Tuple Fields of MessagePassportDataReceived

0: MessagePassportDataReceived
MessagePassportDataSent

Telegram Passport data has been sent

Tuple Fields of MessagePassportDataSent

0: MessagePassportDataSent
MessagePaymentSuccessful

A payment has been completed

Tuple Fields of MessagePaymentSuccessful

0: MessagePaymentSuccessful
MessagePaymentSuccessfulBot

A payment has been completed; for bots only

Tuple Fields of MessagePaymentSuccessfulBot

0: MessagePaymentSuccessfulBot
MessagePhoto

A photo message

Tuple Fields of MessagePhoto

0: MessagePhoto
MessagePinMessage

A message has been pinned

Tuple Fields of MessagePinMessage

0: MessagePinMessage
MessagePoll

A message with a poll

Tuple Fields of MessagePoll

0: MessagePoll
MessageScreenshotTaken

A screenshot of a message in the chat has been taken

Tuple Fields of MessageScreenshotTaken

0: MessageScreenshotTaken
MessageSticker

A sticker message

Tuple Fields of MessageSticker

0: MessageSticker
MessageSupergroupChatCreate

A newly created supergroup or channel

Tuple Fields of MessageSupergroupChatCreate

0: MessageSupergroupChatCreate
MessageText

A text message

Tuple Fields of MessageText

0: MessageText
MessageUnsupported

Message content that is not supported by the client

Tuple Fields of MessageUnsupported

0: MessageUnsupported
MessageVenue

A message with information about a venue

Tuple Fields of MessageVenue

0: MessageVenue
MessageVideo

A video message

Tuple Fields of MessageVideo

0: MessageVideo
MessageVideoNote

A video note message

Tuple Fields of MessageVideoNote

0: MessageVideoNote
MessageVoiceNote

A voice note message

Tuple Fields of MessageVoiceNote

0: MessageVoiceNote
MessageWebsiteConnected

The current user has connected a website by logging in using Telegram Login Widget on it

Tuple Fields of MessageWebsiteConnected

0: MessageWebsiteConnected

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.