StarGift#
- class pyrogram.raw.types.StarGift#
Represents a star gift, see here » for more info.
Constructor of
StarGift
.- Details:
Layer:
198
ID:
2CC73C8
- Parameters:
id (
int
64-bit
) – Identifier of the giftsticker (
Document
) – Sticker that represents the gift.stars (
int
64-bit
) – Price of the gift in Telegram Stars.convert_stars (
int
64-bit
) – The receiver of this gift may convert it to this many Telegram Stars, instead of displaying it on their profile page.convert_stars will be equal to stars only if the gift was bought using recently bought Telegram Stars, otherwise it will be less than stars.limited (
bool
, optional) – Whether this is a limited-supply gift.sold_out (
bool
, optional) – Whether this gift sold out and cannot be bought anymore.birthday (
bool
, optional) – Whether this is a birthday-themed giftavailability_remains (
int
32-bit
, optional) – For limited-supply gifts: the remaining number of gifts that may be bought.availability_total (
int
32-bit
, optional) – For limited-supply gifts: the total number of gifts that was available in the initial supply.first_sale_date (
int
32-bit
, optional) – For sold out gifts only: when was the gift first bought.last_sale_date (
int
32-bit
, optional) – For sold out gifts only: when was the gift last bought.upgrade_stars (
int
64-bit
, optional) – N/A