CheckedGiftCode

class pyrogram.types.CheckedGiftCode

Contains checked gift code data.

Parameters:
  • date (:py:obj:`~datetime.datetime`) – Date when the giveaway was launched.

  • months (``int``) – Number of months of subscription.

  • via_giveaway (``bool``, *optional*) – True if the gift code is received via giveaway.

  • from_chat (:obj:`~pyrogram.types.Chat`, *optional*) – The channel where the gift code was won.

  • winner (:obj:`~pyrogram.types.User`, *optional*) – The user who won the giveaway.

  • giveaway_message_id (``int``, *optional*) – Identifier of the message from chat where the giveaway was launched.

  • used_date (:py:obj:`~datetime.datetime`, *optional*) – Date when the gift code was used.