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) -> Self
fn from(value: InputContactMessageContent) -> Self
Converts to this type from the input type.
source§impl From<InputLocationMessageContent> for InputMessageContent
impl From<InputLocationMessageContent> for InputMessageContent
source§fn from(value: InputLocationMessageContent) -> Self
fn from(value: InputLocationMessageContent) -> Self
Converts to this type from the input type.
source§impl From<InputTextMessageContent> for InputMessageContent
impl From<InputTextMessageContent> for InputMessageContent
source§fn from(value: InputTextMessageContent) -> Self
fn from(value: InputTextMessageContent) -> Self
Converts to this type from the input type.
source§impl From<InputVenueMessageContent> for InputMessageContent
impl From<InputVenueMessageContent> for InputMessageContent
source§fn from(value: InputVenueMessageContent) -> Self
fn from(value: InputVenueMessageContent) -> Self
Converts to this type from the input type.