Enum rtdlib::types::InputMessageContent[][src]

pub enum InputMessageContent {
Show 16 variants InputMessageAnimation(InputMessageAnimation), InputMessageAudio(InputMessageAudio), InputMessageContact(InputMessageContact), InputMessageDocument(InputMessageDocument), InputMessageForwarded(InputMessageForwarded), InputMessageGame(InputMessageGame), InputMessageInvoice(InputMessageInvoice), InputMessageLocation(InputMessageLocation), InputMessagePhoto(InputMessagePhoto), InputMessagePoll(InputMessagePoll), InputMessageSticker(InputMessageSticker), InputMessageText(InputMessageText), InputMessageVenue(InputMessageVenue), InputMessageVideo(InputMessageVideo), InputMessageVideoNote(InputMessageVideoNote), InputMessageVoiceNote(InputMessageVoiceNote), // some variants omitted
}
Expand description

The content of a message to send

Variants

InputMessageAnimation

An animation message (GIF-style).

Tuple Fields of InputMessageAnimation

0: InputMessageAnimation
InputMessageAudio

An audio message

Tuple Fields of InputMessageAudio

0: InputMessageAudio
InputMessageContact

A message containing a user contact

Tuple Fields of InputMessageContact

0: InputMessageContact
InputMessageDocument

A document message (general file)

Tuple Fields of InputMessageDocument

0: InputMessageDocument
InputMessageForwarded

A forwarded message

Tuple Fields of InputMessageForwarded

0: InputMessageForwarded
InputMessageGame

A message with a game; not supported for channels or secret chats

Tuple Fields of InputMessageGame

0: InputMessageGame
InputMessageInvoice

A message with an invoice; can be used only by bots and only in private chats

Tuple Fields of InputMessageInvoice

0: InputMessageInvoice
InputMessageLocation

A message with a location

Tuple Fields of InputMessageLocation

0: InputMessageLocation
InputMessagePhoto

A photo message

Tuple Fields of InputMessagePhoto

0: InputMessagePhoto
InputMessagePoll

A message with a poll. Polls can’t be sent to private or secret chats

Tuple Fields of InputMessagePoll

0: InputMessagePoll
InputMessageSticker

A sticker message

Tuple Fields of InputMessageSticker

0: InputMessageSticker
InputMessageText

A text message

Tuple Fields of InputMessageText

0: InputMessageText
InputMessageVenue

A message with information about a venue

Tuple Fields of InputMessageVenue

0: InputMessageVenue
InputMessageVideo

A video message

Tuple Fields of InputMessageVideo

0: InputMessageVideo
InputMessageVideoNote

A video note message

Tuple Fields of InputMessageVideoNote

0: InputMessageVideoNote
InputMessageVoiceNote

A voice note message

Tuple Fields of InputMessageVoiceNote

0: InputMessageVoiceNote

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.