GiveawayResults

class pyrogram.types.GiveawayResults

Represents the results of a giveaway.

Parameters:
  • chat (Chat) – The chat that created the giveaway.

  • giveaway_message_id (int) – The message ID of the giveaway.

  • winners_count (int) – Total number of winners.

  • unclaimed_count (int) – Number of unclaimed prizes.

  • winners (List of User) – List of winner users.

  • launch_message_id (int, optional) – Message ID of the launch message.

  • additional_chats (List of Chat, optional) – Additional channels that were part of the giveaway.

  • date (datetime, optional) – When the giveaway started.

  • until_date (datetime, optional) – When the giveaway ended.

  • months (int, optional) – Number of months of Premium subscription as prize.

  • stars (int, optional) – Amount of Telegram Stars as prize.

  • prize_description (str, optional) – Description of additional prizes.

  • is_only_new_subscribers (bool, optional) – Whether the giveaway was only for new subscribers.

  • is_refunded (bool, optional) – Whether the giveaway was refunded.