[][src]Enum rust_tdlib::types::InputMessageContent

pub enum InputMessageContent {
    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
}

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

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 and only in private chats

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

impl InputMessageContent[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

Trait Implementations

impl AsRef<InputMessageContent> for InputMessageContent[src]

impl Clone for InputMessageContent[src]

impl Debug for InputMessageContent[src]

impl Default for InputMessageContent[src]

impl<'de> Deserialize<'de> for InputMessageContent[src]

impl RObject for InputMessageContent[src]

impl Serialize for InputMessageContent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,