pub enum InputMessageContent {
InputTextMessageContent(InputTextMessageContent),
InputLocationMessageContent(InputLocationMessageContent),
InputVenueMessageContent(InputVenueMessageContent),
InputContactMessageContent(InputContactMessageContent),
}Expand description
This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 4 types:
Variants§
InputTextMessageContent(InputTextMessageContent)
Represents the content of a text message to be sent as the result of an inline query.
InputLocationMessageContent(InputLocationMessageContent)
Represents the content of a location message to be sent as the result of an inline query.
InputVenueMessageContent(InputVenueMessageContent)
Represents the content of a venue message to be sent as the result of an inline query.
InputContactMessageContent(InputContactMessageContent)
Represents the content of a contact message to be sent as the result of an inline query.
Trait Implementations§
source§impl Debug for InputMessageContent
impl Debug for InputMessageContent
source§impl From<InputContactMessageContent> for InputMessageContent
impl From<InputContactMessageContent> for InputMessageContent
source§fn from(value: InputContactMessageContent) -> InputMessageContent
fn from(value: InputContactMessageContent) -> InputMessageContent
Converts to this type from the input type.
source§impl From<InputLocationMessageContent> for InputMessageContent
impl From<InputLocationMessageContent> for InputMessageContent
source§fn from(value: InputLocationMessageContent) -> InputMessageContent
fn from(value: InputLocationMessageContent) -> InputMessageContent
Converts to this type from the input type.
source§impl From<InputTextMessageContent> for InputMessageContent
impl From<InputTextMessageContent> for InputMessageContent
source§fn from(value: InputTextMessageContent) -> InputMessageContent
fn from(value: InputTextMessageContent) -> InputMessageContent
Converts to this type from the input type.
source§impl From<InputVenueMessageContent> for InputMessageContent
impl From<InputVenueMessageContent> for InputMessageContent
source§fn from(value: InputVenueMessageContent) -> InputMessageContent
fn from(value: InputVenueMessageContent) -> InputMessageContent
Converts to this type from the input type.
source§impl Serialize for InputMessageContent
impl Serialize for InputMessageContent
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more