Struct actix_telegram::types::InlineQueryResultDocument [−][src]
pub struct InlineQueryResultDocument { pub type_: String, pub id: String, pub title: String, pub caption: Option<String>, pub parse_mode: Option<String>, pub document_url: String, pub mime_type: String, pub description: Option<String>, pub reply_markup: Option<InlineKeyboardMarkup>, pub input_message_content: Option<InputMessageContent>, pub thumb_url: Option<String>, pub thumb_width: Option<Integer>, pub thumb_height: Option<Integer>, }
Represents a link to a file. 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. Currently, only .PDF and .ZIP files can be sent using this method.
Fields
type_: String
Type of the result, must be document
id: String
Unique identifier for this result, 1-64 bytes
title: String
Title for the result
caption: Option<String>
Caption of the document to be sent, 0-200 characters
parse_mode: Option<String>
Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
document_url: String
A valid URL for the file
mime_type: String
Mime type of the content of the file, either “application/pdf” or “application/zip”
description: Option<String>
Short description of the result
reply_markup: Option<InlineKeyboardMarkup>
Inline keyboard attached to the message
input_message_content: Option<InputMessageContent>
Content of the message to be sent instead of the file
thumb_url: Option<String>
URL of the thumbnail (jpeg only) for the file
thumb_width: Option<Integer>
Thumbnail width
thumb_height: Option<Integer>
Thumbnail height
Trait Implementations
impl Debug for InlineQueryResultDocument
[src]
impl Debug for InlineQueryResultDocument
Auto Trait Implementations
impl Send for InlineQueryResultDocument
impl Send for InlineQueryResultDocument
impl Sync for InlineQueryResultDocument
impl Sync for InlineQueryResultDocument