CheckedGiftCode#
- class pyrogram.types.CheckedGiftCode#
Contains checked gift code data.
- Parameters:
date (
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 (
Chat
, optional) – The channel where the gift code was won.winner (
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 (
datetime
, optional) – Date when the gift code was used.