MessageActionGiftCode

class pyrogram.raw.types.MessageActionGiftCode

Contains a Telegram Premium giftcode link.

Constructor of MessageAction.

Details:
  • Layer: 194

  • ID: 56D03994

Parameters:
  • months (int 32-bit) – Duration in months of the gifted Telegram Premium subscription.

  • slug (str) – Slug of the Telegram Premium giftcode link

  • via_giveaway (bool, optional) – If set, this gift code was received from a giveaway » started by a channel we’re subscribed to.

  • unclaimed (bool, optional) – If set, the link was not redeemed yet.

  • boost_peer (Peer, optional) – Identifier of the channel that created the gift code either directly or through a giveaway: if we import this giftcode link, we will also automatically boost this channel.

  • currency (str, optional) – Three-letter ISO 4217 currency code

  • amount (int 64-bit, optional) – Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

  • crypto_currency (str, optional) – If set, the gift was made using the specified cryptocurrency.

  • crypto_amount (int 64-bit, optional) – If crypto_currency is set, contains the paid amount, in the smallest units of the cryptocurrency.

  • message (TextWithEntities, optional) – N/A