Struct tg_flows::InputMessageContentText
source · pub struct InputMessageContentText {
pub message_text: String,
pub parse_mode: Option<ParseMode>,
pub entities: Option<Vec<MessageEntity>>,
pub disable_web_page_preview: Option<bool>,
}Expand description
Represents the content of a text message to be sent as the result of an inline query.
Fields§
§message_text: StringText of the message to be sent, 1-4096 characters.
parse_mode: Option<ParseMode>Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
entities: Option<Vec<MessageEntity>>List of special entities that appear in message text, which can be
specified instead of parse_mode.
disable_web_page_preview: Option<bool>Disables link previews for links in the sent message.
Implementations§
source§impl InputMessageContentText
impl InputMessageContentText
pub fn new<S>(message_text: S) -> Selfwhere S: Into<String>,
pub fn message_text<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn parse_mode(self, val: ParseMode) -> Self
pub fn entities<C>(self, val: C) -> Selfwhere C: IntoIterator<Item = MessageEntity>,
pub fn disable_web_page_preview(self, val: bool) -> Self
Trait Implementations§
source§impl Clone for InputMessageContentText
impl Clone for InputMessageContentText
source§fn clone(&self) -> InputMessageContentText
fn clone(&self) -> InputMessageContentText
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InputMessageContentText
impl Debug for InputMessageContentText
source§impl<'de> Deserialize<'de> for InputMessageContentText
impl<'de> Deserialize<'de> for InputMessageContentText
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<InputMessageContentText> for InputMessageContentText
impl PartialEq<InputMessageContentText> for InputMessageContentText
source§fn eq(&self, other: &InputMessageContentText) -> bool
fn eq(&self, other: &InputMessageContentText) -> bool
This method tests for
self and other values to be equal, and is used
by ==.