Struct telexide::api::types::InlineQueryResultDocument[][src]

pub struct InlineQueryResultDocument {
Show fields pub id: String, pub document_url: String, pub title: String, pub mime_type: String, pub caption: Option<String>, pub description: Option<String>, pub voice_duration: Option<i64>, pub parse_mode: Option<ParseMode>, pub caption_entities: Option<Vec<MessageEntity>>, pub input_message_content: Option<InputMessageContent>, pub reply_markup: Option<InlineKeyboardMarkup>, pub thumb_url: Option<String>, pub thumb_width: Option<i64>, pub thumb_height: Option<i64>,
}

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

id: String

Unique identifier for this result, 1-64 bytes

document_url: String

A valid URL for the file

title: String

Title of the result

mime_type: String

Mime type of the content of the file, either “application/pdf” or “application/zip”

caption: Option<String>

Caption of the audio to be sent, 0-1024 characters after entities parsing

description: Option<String>

Short description of the result

voice_duration: Option<i64>

Recording duration in seconds

parse_mode: Option<ParseMode>

Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot’s message.

caption_entities: Option<Vec<MessageEntity>>

List of special entities that appear in the caption, which can be specified instead of parse_mode

input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the document

reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

thumb_url: Option<String>

URL of the thumbnail (jpeg only) for the file

thumb_width: Option<i64>

Thumbnail width

thumb_height: Option<i64>

Thumbnail height

Trait Implementations

impl Clone for InlineQueryResultDocument[src]

impl Debug for InlineQueryResultDocument[src]

impl<'de> Deserialize<'de> for InlineQueryResultDocument[src]

impl PartialEq<InlineQueryResultDocument> for InlineQueryResultDocument[src]

impl Serialize for InlineQueryResultDocument[src]

impl StructuralPartialEq for InlineQueryResultDocument[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Any + Clone
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any