IFiles
v1 stable/IFiles/v1/
Upload sticker and emoji files once and use them by fileId, like Telegram's uploadStickerFile. An upload is kept for 24 hours; at most 100 unclaimed uploads per bot.
Authentication required
All endpoints require Authorization: Bot <token> header.
Get a token →
/IFiles/v1/Get Describes a file the bot uploaded or owns, or any sticker or emoji file: its size, type and a download URL.
Query Parameters
Response BotFileV1
Errors
Example
curl -X GET \
-H "Authorization: Bot YOUR_TOKEN" \
"https://gateway.argon.zone/IFiles/v1/Get?fileId=..." /IFiles/v1/Upload Uploads a sticker, emoji or thumbnail file (multipart: file, purpose) for IExpressions/AddItem to take by fileId, any number of times, within 24 hours. PNG, WEBP, TGS, Lottie JSON or WEBM; thumb takes WEBP only.
Form Fields multipart/form-data
Each field is a text part; a list repeats its field once per value, or sends one field holding a JSON array.
A file field is a part of that name, or a text field holding
attach://<part> that names another part of the request.
Where a route reuses uploads, it also takes the fileId of an
IFiles/Upload.
See Stickers & Custom Emoji → Files.
A file: the part of this name itself, or a text field holding attach://<name> (another part of the request). A fileId is not accepted here.
A part an attach://<name> reference names.
Response BotFileV1
Errors
Example
curl -X POST \
-H "Authorization: Bot YOUR_TOKEN" \
-F "file=@./file" \
-F "purpose=sticker" \
https://gateway.argon.zone/IFiles/v1/Upload