GiftedStars

class pyrogram.types.GiftedStars

Telegram Stars were gifted to a user.

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

  • receiver_user_id (``int``) – The identifier of a user that received Telegram Stars; 0 if the gift is incoming

  • 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

  • star_count (``int``) – Number of Telegram Stars that were gifted

  • transaction_id (``str``) – Identifier of the transaction for Telegram Stars purchase; for receiver only

  • sticker (:obj:`~pyrogram.types.Sticker`) – A sticker to be shown in the transaction information; may be None if unknown