Module

x/grammy/context.ts>Context#replyWithSticker

The Telegram Bot Framework.
Very Popular
Go to Latest
method Context.prototype.replyWithSticker
import { Context } from "https://dotland.deno.dev/x/grammy@v1.31.1/context.ts";

Context-aware alias for api.sendSticker. Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.

Parameters

sticker: InputFile | string

Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data. Video and animated stickers can't be sent via an HTTP URL.

optional
other: Other<"sendSticker", "chat_id" | "sticker">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

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