Skip to main content
POST
Register or request a file

Авторизации

Authorization
string
header
обязательно

API token from the Zenedu dashboard

Параметры пути

bot
integer
обязательно

Bot ID

Тело

application/json
file_id
string

A Telegram file_id for a file uploaded through this bot by any method (Bot API or MTProto). Required together with type to register.

Maximum string length: 255
type
enum<string>

File type (required together with file_id)

Доступные опции:
photo,
video,
document,
audio,
voice,
video_note,
animation,
sticker

Ответ

File registered, or an upload was requested

Returned when a file_id is registered

data
object