payments.GiveawayInfo

class pyrogram.raw.types.payments.GiveawayInfo

Contains info about an ongoing giveaway.

Constructor of GiveawayInfo.

Details:
  • Layer: 223

  • ID: 4367DAA0

Parameters:
  • start_date (int 32-bit) – When was the giveaway started

  • participating (bool, optional) – The current user is participating in the giveaway.

  • preparing_results (bool, optional) – If set, the giveaway has ended and the results are being prepared.

  • joined_too_early_date (int 32-bit, optional) – The current user can’t participate in the giveaway, because they were already a member of the channel when the giveaway started, and the only_new_subscribers was set when starting the giveaway.

  • admin_disallowed_chat_id (int 64-bit, optional) – If set, the current user can’t participate in the giveaway, because they are an administrator in one of the channels (ID specified in this flag) that created the giveaway.

  • disallowed_country (str, optional) – If set, the current user can’t participate in this giveaway, because their phone number is from the specified disallowed country (specified as a two-letter ISO 3166-1 alpha-2 country code).

Functions:

This object can be returned by 1 function.

payments.GetGiveawayInfo

Obtain information about a Telegram Premium giveaway ».

TL Schema

payments.giveawayInfo#4367daa0
flags:#
participating:flags.0?true
preparing_results:flags.3?true
start_date:int
joined_too_early_date:flags.1?int
admin_disallowed_chat_id:flags.2?long
disallowed_country:flags.4?string

= payments.GiveawayInfo

Parameter Tree

GiveawayInfo
├── participatingtrue (optional)
├── preparing_resultstrue (optional)
├── start_dateint
├── joined_too_early_dateint (optional)
├── admin_disallowed_chat_idlong (optional)
└── disallowed_countrystring (optional)

Example

GiveawayInfo(
    start_date=0,
)