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

x/grammy_types/mod.ts>Gift

Type declarations of the Telegram Bot API.
Latest
interface Gift
import { type Gift } from "https://deno.land/x/grammy_types@v3.16.0/mod.ts";

This object represents a gift that can be sent by the bot.

Properties

id: string

Unique identifier of the gift

sticker: Sticker

The sticker that represents the gift

star_count: number

The number of Telegram Stars that must be paid to send the sticker

optional
total_count: number

The total number of the gifts of this type that can be sent; for limited gifts only

optional
remaining_count: number

The number of remaining gifts of this type that can be sent; for limited gifts only