pub struct InlineQueryResultArticle {
pub id: String,
pub title: String,
pub input_message_content: InputMessageContent,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub url: Option<String>,
pub hide_url: bool,
pub description: Option<String>,
pub thumb_url: Option<String>,
pub thumb_width: Option<Integer>,
pub thumb_height: Option<Integer>,
}
Fields§
§id: String
Unique identifier for this result, 1-64 Bytes
title: String
Title of the result
input_message_content: InputMessageContent
Content of the message to be sent
reply_markup: Option<InlineKeyboardMarkup>
Inline keyboard attached to the message
url: Option<String>
URL of the result
hide_url: bool
Pass True, if you don’t want the URL to be shown in the message
description: Option<String>
Short description of the result
thumb_url: Option<String>
Url of the thumbnail for the result
thumb_width: Option<Integer>
Thumbnail width
thumb_height: Option<Integer>
Thumbnail height
Implementations§
source§impl InlineQueryResultArticle
impl InlineQueryResultArticle
pub fn new<T: Into<String>, U: Into<String>, V: Into<InputMessageContent>>(
id: T,
title: U,
input_message_content: V
) -> InlineQueryResultArticle
pub fn reply_markup<T: Into<InlineKeyboardMarkup>>(
&mut self,
reply_markup: T
) -> &mut Self
pub fn url<T: Into<String>>(&mut self, url: T) -> &mut Self
pub fn hide_url<T: Into<bool>>(&mut self, hide_url: T) -> &mut Self
pub fn description<T: Into<String>>(&mut self, description: T) -> &mut Self
pub fn thumb_url<T: Into<String>>(&mut self, thumb_url: T) -> &mut Self
pub fn thumb_width<T: Into<Integer>>(&mut self, thumb_width: T) -> &mut Self
pub fn thumb_height<T: Into<Integer>>(&mut self, thumb_height: T) -> &mut Self
Trait Implementations§
source§impl Debug for InlineQueryResultArticle
impl Debug for InlineQueryResultArticle
source§impl From<InlineQueryResultArticle> for InlineQueryResult
impl From<InlineQueryResultArticle> for InlineQueryResult
source§fn from(article: InlineQueryResultArticle) -> Self
fn from(article: InlineQueryResultArticle) -> Self
Converts to this type from the input type.