InputStorePaymentPremiumGiftCode

class pyrogram.raw.types.InputStorePaymentPremiumGiftCode

Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel or to some of our contacts, see here » for more info on giveaways and gifts.

Constructor of InputStorePaymentPurpose.

Details:
  • Layer: 194

  • ID: FB790393

Parameters:
  • users (List of InputUser) – The users that will receive the Telegram Premium subscriptions.

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

  • amount (int 64-bit) – 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).

  • boost_peer (InputPeer, optional) – If set, the gifts will be sent on behalf of a channel we are an admin of, which will also assign some boosts to it. Otherwise, the gift will be sent directly from the currently logged in users, and we will gain some extra boost slots. See here » for more info on giveaways and gifts.

  • message (TextWithEntities, optional) – N/A