pub enum InputMessageContent {
Show 17 variants InputMessageAnimation(InputMessageAnimation), InputMessageAudio(InputMessageAudio), InputMessageContact(InputMessageContact), InputMessageDice(InputMessageDice), 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(InputMessageAnimation)

An animation message (GIF-style).

InputMessageAudio(InputMessageAudio)

An audio message

InputMessageContact(InputMessageContact)

A message containing a user contact

InputMessageDice(InputMessageDice)

A dice message

InputMessageDocument(InputMessageDocument)

A document message (general file)

InputMessageForwarded(InputMessageForwarded)

A forwarded message

InputMessageGame(InputMessageGame)

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

InputMessageInvoice(InputMessageInvoice)

A message with an invoice; can be used only by bots

InputMessageLocation(InputMessageLocation)

A message with a location

InputMessagePhoto(InputMessagePhoto)

A photo message

InputMessagePoll(InputMessagePoll)

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

InputMessageSticker(InputMessageSticker)

A sticker message

InputMessageText(InputMessageText)

A text message

InputMessageVenue(InputMessageVenue)

A message with information about a venue

InputMessageVideo(InputMessageVideo)

A video message

InputMessageVideoNote(InputMessageVideoNote)

A video note message

InputMessageVoiceNote(InputMessageVoiceNote)

A voice note message

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)

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.