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
Auto Trait Implementations§
impl Freeze for InputMessageContent
impl RefUnwindSafe for InputMessageContent
impl Send for InputMessageContent
impl Sync for InputMessageContent
impl Unpin for InputMessageContent
impl UnwindSafe for InputMessageContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more