Skip to main content
POST
Register or request a file

Authorizations

Authorization
string
header
required

API token from the Zenedu dashboard

Path Parameters

bot
integer
required

Bot ID

Body

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)

Available options:
photo,
video,
document,
audio,
voice,
video_note,
animation,
sticker

Response

File registered, or an upload was requested

Returned when a file_id is registered

data
object