Gift¶
- class pyrogram.types.Gift¶
Describes a gift that can be sent to another user.
- Parameters:¶
id (
int
) – Unique identifier of the gift.sticker (
Sticker
) – The sticker representing the gift.star_count (
int
) – Number of Telegram Stars that must be paid for the gift.default_sell_star_count (
int
) – Number of Telegram Stars that can be claimed by the receiver instead of the gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed.remaining_count (
int
, optional) – Number of remaining times the gift can be purchased by all users; None if not limited or the gift was sold out.total_count (
int
, optional) – Number of total times the gift can be purchased by all users; None if not limited.first_send_date (
datetime
, optional) – Point in time (Unix timestamp) when the gift was send for the first time; for sold out gifts only.last_send_date (
datetime
, optional) – Point in time (Unix timestamp) when the gift was send for the last time; for sold out gifts only.is_limited (
bool
, optional) – True, if the number of gifts is limited.is_sold_out (
bool
, optional) – True, if the star gift is sold out.