Skip to main content
Module

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

The Telegram Bot Framework.
Extremely Popular
Go to Latest
method Api.prototype.sendSticker
import { Api } from "https://deno.land/x/grammy@v1.11.1/core/api.ts";

Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.

Parameters

chat_id: number | string

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

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 file from the Internet, or upload a new one using multipart/form-data.

optional
other: Other<R, "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