typescript-telegram-bot-api
Version:
Telegram Bot API wrapper for Node.js written in TypeScript
33 lines (32 loc) • 887 B
TypeScript
import { Sticker } from './';
/**
* ## Gift
* This object represents a gift that can be sent by the bot.
* @see https://core.telegram.org/bots/api#gift
*/
export type Gift = {
/**
* Unique identifier of the gift
*/
id: string;
/**
* The sticker that represents the gift
*/
sticker: Sticker;
/**
* The number of Telegram Stars that must be paid to send the sticker
*/
star_count: number;
/**
* Optional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one
*/
upgrade_star_count?: number;
/**
* Optional. The total number of the gifts of this type that can be sent; for limited gifts only
*/
total_count?: number;
/**
* Optional. The number of remaining gifts of this type that can be sent; for limited gifts only
*/
remaining_count?: number;
};