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