1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 12:26:55 +01:00
MadelineProto/docs/TD_docs/constructors/inputInlineQueryResultDocument.md

2.1 KiB

title description
inputInlineQueryResultDocument Represents link to a file

Constructor: inputInlineQueryResultDocument

Back to constructors index

Represents link to a file

Attributes:

Name Type Required Description
id string Yes Unique identifier of this result
title string Yes Title of the result
description string Yes Short description of the result, if known
document_url string Yes Url of the file
mime_type string Yes MIME type of the file content, only “application/pdf” and “application/zip” are allowed now
thumb_url string Yes Url of the file thumb, if exists
thumb_width int Yes Width of the thumb
thumb_height int Yes Height of the thumb
reply_markup ReplyMarkup Yes Message reply markup, should be of type replyMarkupInlineKeyboard or null
input_message_content InputMessageContent Yes Content of the message to be sent, should be of type inputMessageText or inputMessageDocument or InputMessageLocation or InputMessageVenue or InputMessageContact

Type: InputInlineQueryResult

Example:

$inputInlineQueryResultDocument = ['_' => 'inputInlineQueryResultDocument', 'id' => string, 'title' => string, 'description' => string, 'document_url' => string, 'mime_type' => string, 'thumb_url' => string, 'thumb_width' => int, 'thumb_height' => int, 'reply_markup' => ReplyMarkup, 'input_message_content' => InputMessageContent, ];

Or, if you're into Lua:

inputInlineQueryResultDocument={_='inputInlineQueryResultDocument', id=string, title=string, description=string, document_url=string, mime_type=string, thumb_url=string, thumb_width=int, thumb_height=int, reply_markup=ReplyMarkup, input_message_content=InputMessageContent, }