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
An animation message (GIF-style).
Tuple Fields of InputMessageAnimation
An audio message
Tuple Fields of InputMessageAudio
A message containing a user contact
Tuple Fields of InputMessageContact
A document message (general file)
Tuple Fields of InputMessageDocument
A forwarded message
Tuple Fields of InputMessageForwarded
A message with a game; not supported for channels or secret chats
Tuple Fields of InputMessageGame
A message with an invoice; can be used only by bots and only in private chats
Tuple Fields of InputMessageInvoice
A message with a location
Tuple Fields of InputMessageLocation
A photo message
Tuple Fields of InputMessagePhoto
A message with a poll. Polls can’t be sent to private or secret chats
Tuple Fields of InputMessagePoll
A sticker message
Tuple Fields of InputMessageSticker
A text message
Tuple Fields of InputMessageText
A message with information about a venue
Tuple Fields of InputMessageVenue
A video message
Tuple Fields of InputMessageVideo
A video note message
Tuple Fields of InputMessageVideoNote
A voice note message
Tuple Fields of InputMessageVoiceNote
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<InputMessageContent, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<InputMessageContent, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for InputMessageContent
impl Send for InputMessageContent
impl Sync for InputMessageContent
impl Unpin for InputMessageContent
impl UnwindSafe for InputMessageContent
Blanket Implementations
Mutably borrows from an owned value. Read more