Interface InputInlineQueryResultDocument

Represents a link to a file. Subtype of InputInlineQueryResult.

interface InputInlineQueryResultDocument {
    @type: "inputInlineQueryResultDocument";
    description: string;
    document_url: string;
    id: string;
    input_message_content: InputMessageContent;
    mime_type: string;
    reply_markup: ReplyMarkup;
    thumbnail_height: number;
    thumbnail_url: string;
    thumbnail_width: number;
    title: string;
}

Properties

@type: "inputInlineQueryResultDocument"
description: string

Represents a link to a file.

document_url: string

URL of the file.

id: string

Unique identifier of the query result.

input_message_content: InputMessageContent

The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageDocument, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.

mime_type: string

MIME type of the file content; only "application/pdf" and "application/zip" are currently allowed.

reply_markup: ReplyMarkup

The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.

thumbnail_height: number

Height of the thumbnail.

thumbnail_url: string

The URL of the file thumbnail, if it exists.

thumbnail_width: number

Width of the thumbnail.

title: string

Title of the resulting file.