uploadStickerFile
Upload a sticker file for reuse when creating, adding to, or replacing sticker set entries in Telegram.
Instructions
Use this method to upload a file with a sticker for later use in the createNewStickerSet, addStickerToSet, or replaceStickerInSet methods (the file can be used multiple times). Returns the uploaded File on success.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"sticker_format": "<sticker_format>",
"sticker": "<sticker>"
},
"name": "uploadStickerFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sticker | Yes | A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. | |
| user_id | Yes | User identifier of sticker file owner | |
| sticker_format | Yes | Format of the sticker, must be one of “static”, “animated”, “video” |