payments.GiveawayInfoResults

class pyrogram.raw.types.payments.GiveawayInfoResults

A giveaway has ended.

Constructor of GiveawayInfo.

Details:
  • Layer: 223

  • ID: E175E66F

Parameters:
  • start_date (int 32-bit) – Start date of the giveaway

  • finish_date (int 32-bit) – End date of the giveaway. May be bigger than the end date specified in parameters of the giveaway.

  • winners_count (int 32-bit) – Number of winners in the giveaway

  • winner (bool, optional) – Whether we’re one of the winners of this giveaway.

  • refunded (bool, optional) – Whether the giveaway was canceled and was fully refunded.

  • gift_code_slug (str, optional) – If we’re one of the winners of this giveaway, contains the Premium gift code, see here » for more info on the full giveaway flow.

  • stars_prize (int 64-bit, optional) – If we’re one of the winners of this Telegram Star giveaway, the number Telegram Stars we won.

  • activated_count (int 32-bit, optional) – Number of winners, which activated their gift codes.

Functions:

This object can be returned by 1 function.

payments.GetGiveawayInfo

Obtain information about a Telegram Premium giveaway ».

TL Schema

payments.giveawayInfoResults#e175e66f
flags:#
winner:flags.0?true
refunded:flags.1?true
start_date:int
gift_code_slug:flags.3?string
stars_prize:flags.4?long
finish_date:int
winners_count:int
activated_count:flags.2?int

= payments.GiveawayInfo

Parameter Tree

GiveawayInfoResults
├── winnertrue (optional)
├── refundedtrue (optional)
├── start_dateint
├── gift_code_slugstring (optional)
├── stars_prizelong (optional)
├── finish_dateint
├── winners_countint
└── activated_countint (optional)

Example

GiveawayInfoResults(
    start_date=0,
    finish_date=0,
    winners_count=0,
)