InputInvoicePremiumGiftStars#

class pyrogram.raw.types.InputInvoicePremiumGiftStars#

Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars.

Constructor of InputInvoice.

Details:
  • Layer: 214

  • ID: DABAB2EF

Parameters:
  • user_id (InputUser) – Who will receive the gifted subscription.

  • months (int 32-bit) – Duration of the subscription in months, must be one of the options with currency == “XTR” returned by payments.getPremiumGiftCodeOptions.

  • message (TextWithEntities, optional) – Message attached with the gift.