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

x/grammy_files/deps.deno.ts>Api#setStickerPositionInSet

Handle and download received media files.
Latest
method Api.prototype.setStickerPositionInSet
import { Api } from "https://deno.land/x/grammy_files@v1.1.1/deps.deno.ts";

Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.

Parameters

sticker: string

File identifier of the sticker

position: number

New sticker position in the set, zero-based

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

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