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

x/grammy/mod.ts>Api#sendGift

The Telegram Bot Framework.
Very Popular
Latest
method Api.prototype.sendGift
import { Api } from "https://deno.land/x/grammy@v1.32.0/mod.ts";

Sends a gift to the given user. The gift can't be converted to Telegram Stars by the user. Returns True on success.

Parameters

user_id: number

Unique identifier of the target user that will receive the gift

gift_id: string

Identifier of the gift

optional
other: Other<R, "sendGift", "user_id" | "gift_id">

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#sendgift