GiftedPremium

class pyrogram.types.GiftedPremium

Telegram Premium was gifted to the user.

Parameters:
  • gifter_user_id (``int``) – The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous

  • currency (``str``) – Currency for the paid amount

  • amount (``int``) – The paid amount, in the smallest units of the currency

  • cryptocurrency (``str``) – Cryptocurrency used to pay for the gift; may be empty if none

  • cryptocurrency_amount (``int``) – The paid amount, in the smallest units of the cryptocurrency; 0 if none

  • 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 (:obj:`~pyrogram.types.Sticker`) – A sticker to be shown in the transaction information; may be None if unknown

  • caption (``str``, *optional*) – Text message chosen by the sender.

  • caption_entities (List of :obj:`~pyrogram.types.MessageEntity`, *optional*) – Entities of the text message.