uploadStickerFile
Upload a sticker file to Telegram to make it available for creating or updating sticker sets. Supports static, animated, and video sticker formats.
Instructions
Upload a file with a sticker for later use in the createNewStickerSet, addStickerToSet, or replaceStickerInSet methods. 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": "<sticker>",
"sticker_format": "<sticker_format>"
},
"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: "static" for .WEBP or .PNG, "animated" for .TGS, "video" for .WEBM. |