GiftCode

class pyrogram.types.GiftCode

A service message about a gift code.

Parameters:
  • months (int) – How long the telegram premium last (in month).

  • slug (str) – The slug of the gift code.

  • is_giveaway (bool, optional) – True, if the gift code is from a giveaway.

  • is_unclaimed (bool, optional) – True, if the gift code is unclaimed.

  • boosted_chat (Chat, optional) – The chat that the gift code boost.

  • currency (str, optional) – The currency of the gift code.

  • amount (int, optional) – The amount of the gift code.

  • crypto_currency (str, optional) – The crypto currency of the gift code.

  • crypto_amount (int, optional) – The crypto amount of the gift code.