uploadStickerFile
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).
Required: user_id, sticker, sticker_format
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("upload_sticker_file", { user_id: 0, sticker: { /* InputFile */ }, sticker_format: "static"})Parameters
user_id number Required
User identifier of sticker file owner.
sticker InputFile Required
A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files ».
sticker_format "static" | "animated" | "video" Required
Format of the sticker, must be one of “static”, “animated”, “video”.