Gift¶
- class telegram.Gift(id, sticker, star_count, total_count=None, remaining_count=None, upgrade_star_count=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
This object represents a gift that can be sent by the bot.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their
id
is equal.Use In
Available In
Added in version 21.8.
- Parameters:
star_count (
int
) – The number of Telegram Stars that must be paid to send the stickertotal_count (
int
, optional) – The total number of the gifts of this type that can be sent; for limited gifts onlyremaining_count (
int
, optional) – The number of remaining gifts of this type that can be sent; for limited gifts onlyupgrade_star_count (
int
, optional) –The number of Telegram Stars that must be paid to upgrade the gift to a unique one
Added in version 21.10.
- total_count[source]¶
Optional. The total number of the gifts of this type that can be sent; for limited gifts only
- Type:
- remaining_count[source]¶
Optional. The number of remaining gifts of this type that can be sent; for limited gifts only
- Type:
- upgrade_star_count[source]¶
Optional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one
Added in version 21.10.
- Type: