Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_conversations/deps.deno.ts>Api#uploadStickerFile

Conversational interfaces for grammY.
Latest
method Api.prototype.uploadStickerFile
import { Api } from "https://deno.land/x/grammy_conversations@v1.2.0/deps.deno.ts";

Use this method to upload a file with a sticker for later use in the createNewStickerSet and addStickerToSet methods (the file can be used multiple times). Returns the uploaded File on success.

Parameters

user_id: number

User identifier of sticker file owner

sticker_format: "static" | "animated" | "video"

Format of the sticker, must be one of “static”, “animated”, “video”

sticker: InputFile

A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements.

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#uploadstickerfile