interface Gift

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

Properties

id: string

Unique identifier of the gift

Information about the chat that published the gift

The sticker that represents the gift

Background of the gift

optional
is_premium: true

True, if the gift can only be purchased by Telegram Premium subscribers

optional
has_colors: true

True, if the gift can be used (after being upgraded) to customize a user's appearance

star_count: number

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

optional
upgrade_star_count: number

The number of Telegram Stars that must be paid to upgrade the gift to a unique one

The total number of different unique gifts that can be obtained by upgrading the gift

optional
total_count: number

The total number of gifts of this type that can be sent by all users; for limited gifts only

optional
remaining_count: number

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

optional
personal_total_count: number

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

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