Skip to main content
Module

x/grammy/core/api.ts>Api#uploadStickerFile

The Telegram Bot Framework.
Extremely Popular
Go to Latest
method Api.prototype.uploadStickerFile
import { Api } from "https://deno.land/x/grammy@v1.11.1/core/api.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