Bot

Uploads bot media using multipart/form-data and returns a reusable bot file.

post/bot{token}/uploadFile

Request

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

Path parameters

tokenstring required

Required bot token included in the URL path.

Headers

authorizationstring

Optional bot token using the Bearer scheme. When supplied, it takes precedence over the token in the URL.

Request body multipart/form-data

type'photo' | 'video' | 'document' | 'voice' required
filestring binary required
thumbnailstring binary nullable
widthstring
heightstring
durationstring
is_animatedstring
has_audiostring
waveform_base64string

Response

BotGetFileSuccess

oktrue required

Always true for a successful request.

Changes