payments.CheckedGiftCode

class pyrogram.raw.types.payments.CheckedGiftCode

Contains info about a Telegram Premium giftcode link.

Constructor of CheckedGiftCode.

Details:
  • Layer: 187

  • ID: 284A1096

Parameters:
  • date (int 32-bit) – Creation date of the gift code.

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

  • chats (List of Chat) – Mentioned chats

  • users (List of User) – Mentioned users

  • via_giveaway (bool, optional) – Whether this giftcode was created by a giveaway.

  • from_id (Peer, optional) – The peer that created the gift code.

  • giveaway_msg_id (int 32-bit, optional) – Message ID of the giveaway in the channel specified in from_id.

  • to_id (int 64-bit, optional) – The destination user of the gift.

  • used_date (int 32-bit, optional) – When was the giftcode imported, if it was imported.

Functions:

This object can be returned by 1 function.

payments.CheckGiftCode

Obtain information about a Telegram Premium giftcode »