Module

x/grammy/mod.ts>Api#uploadStickerFile

The Telegram Bot Framework.
Very Popular
Go to Latest
method Api.prototype.uploadStickerFile
import { Api } from "https://dotland.deno.dev/x/grammy@v1.12.3/mod.ts";

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

Parameters

user_id: number

User identifier of sticker file owner

png_sticker: InputFile

PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px.

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

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