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

x/grammy/mod.ts>Context#replyWithGift

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

Context-aware alias for api.sendGift. Sends a gift to the given user. The gift can't be converted to Telegram Stars by the user. Returns True on success.

Parameters

gift_id: string

Identifier of the gift

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