GiftedTon

class pyrogram.types.GiftedTon

Toncoins were gifted to a user.

Parameters:
  • gifter (User, optional) – User that gifted Telegram Premium. None if the gift was anonymous.

  • receiver (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 (Sticker) – A sticker to be shown in the message.