Skip to content

InputInlineQueryResultDocument

Type · TDLib 1.8.67 · d1085f9c

Represents a link to a file

InputInlineQueryResultDocument(
  id: string,
  title: string,
  description: string,
  document_url: string,
  mime_type: string,
  thumbnail_url: string,
  thumbnail_width: int32,
  thumbnail_height: int32,
  reply_markup: ReplyMarkup,
  input_message_content: InputMessageContent
) → InputInlineQueryResult

id

string

Unique identifier of the query result

title

string

Title of the resulting file

description

string

Short description of the result, if known

document_url

string

URL of the file

mime_type

string

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

thumbnail_url

string

The URL of the file thumbnail, if it exists

thumbnail_width

int32

Width of the thumbnail

thumbnail_height

int32

Height of the thumbnail

reply_markup

ReplyMarkup

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

input_message_content

InputMessageContent

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