Bot

Returns metadata and a short-lived download URL for a Bot-owned file or a file in a currently accessible message. Pass chat_id and message_id of that message; the file_id-only form is legacy.

get/bot/getFile

Request

  • Base URL
    https://api.inline.chat
  • Auth
    none required

Query parameters

file_idstring required

Bot method parameter.

chat_idstring

A positive decimal Inline chat identifier

Example:123456789

Bot method parameter.

message_idstring

A positive decimal Inline message identifier

Example:123456789

Bot method parameter.

Headers

authorizationstring required

Required bot token using the Bearer scheme.

Response

BotGetFileSuccess

oktrue required

Always true for a successful request.

Changes