GiftedPremium¶
- class pyrogram.types.GiftedPremium¶
Telegram Premium was gifted to the user.
- Parameters:
gifter (
User, optional) – User that gifted Telegram Premium. None if the gift was anonymous.receiver (
User) – User that received Telegram Premium.currency (
str) – Currency for the paid amount.amount (
int) – The paid amount, in the smallest units of the currency.cryptocurrency (
str, optional) – Cryptocurrency used to pay for the gift.cryptocurrency_amount (
int, optional) – The paid amount, in the smallest units of the cryptocurrency.month_count (
int) – Number of months the Telegram Premium subscription will be active.day_count (
int) – Number of days the Telegram Premium subscription will be active.sticker (
Sticker) – A sticker to be shown in the message.caption (
str, optional) – Message added to the gifted Telegram Premium by the sender.caption_entities (List of
MessageEntity, optional) – Entities of the text message.