GiftCode#
- class pyrogram.types.GiftCode#
Contains gift code data.
- Parameters:
months (
int
) – Number of months of subscription.slug (
str
) – Identifier of gift code. You can combine it with t.me/giftcode/{slug} to get link for this gift.via_giveaway (
bool
) – True if the gift code is received via giveaway.is_unclaimed (
bool
) – True if the winner for the corresponding Telegram Premium subscription wasn’t chosen.boosted_chat (
Chat
) – The channel where the gift code was won.link (
str
, property) – Generate a link to this gift code.