pub struct InlineQueryResultCachedDocumentBuilder { /* private fields */ }Expand description
Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
Implementations§
source§impl InlineQueryResultCachedDocumentBuilder
impl InlineQueryResultCachedDocumentBuilder
pub fn new(id: String, title: String, document_file_id: String) -> Self
sourcepub fn set_document_file_id(self, document_file_id: String) -> Self
pub fn set_document_file_id(self, document_file_id: String) -> Self
A valid file identifier for the file
sourcepub fn set_description(self, description: String) -> Self
pub fn set_description(self, description: String) -> Self
Optional. Short description of the result
sourcepub fn set_caption(self, caption: String) -> Self
pub fn set_caption(self, caption: String) -> Self
Optional. Caption of the document to be sent, 0-1024 characters after entities parsing
sourcepub fn set_parse_mode(self, parse_mode: String) -> Self
pub fn set_parse_mode(self, parse_mode: String) -> Self
Optional. Mode for parsing entities in the document caption. See formatting options for more details.
sourcepub fn set_caption_entities(self, caption_entities: Vec<MessageEntity>) -> Self
pub fn set_caption_entities(self, caption_entities: Vec<MessageEntity>) -> Self
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
sourcepub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
pub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
Optional. Inline keyboard attached to the message
sourcepub fn set_input_message_content(
self,
input_message_content: InputMessageContent
) -> Self
pub fn set_input_message_content(
self,
input_message_content: InputMessageContent
) -> Self
Optional. Content of the message to be sent instead of the file
pub fn build(self) -> InlineQueryResultCachedDocument
Trait Implementations§
source§impl Clone for InlineQueryResultCachedDocumentBuilder
impl Clone for InlineQueryResultCachedDocumentBuilder
source§fn clone(&self) -> InlineQueryResultCachedDocumentBuilder
fn clone(&self) -> InlineQueryResultCachedDocumentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more