GiftedTon

class pyrogram.types.GiftedTon

Toncoins were gifted to a user.

Parameters:
  • gifter (:obj:`~pyrogram.types.User`, *optional*) – User that gifted Telegram Premium. None if the gift was anonymous.

  • receiver (:obj:`~pyrogram.types.User`) – User that received Telegram Premium.

  • ton_amount (``int``) – The received amount of Toncoins, in the smallest units of the cryptocurrency.

  • transaction_id (``str``, *optional*) – Identifier of the transaction for Telegram Stars purchase. For receiver only.

  • sticker (:obj:`~pyrogram.types.Sticker`) – A sticker to be shown in the message.