Skip to content
Back to top
View this page

# GiveawayCompleted

class telegram.GiveawayCompleted(winner_count, unclaimed_prize_count=None, giveaway_message=None, is_star_giveaway=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object represents a service message about the completion of a giveaway without public winners.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `winner_count` and `unclaimed_prize_count` are equal.

  Available In

  `telegram.Message.giveaway_completed`

  Added in version 20.8.

  Parameters:

    - winner_count (`int`) – Number of winners in the giveaway

    - unclaimed_prize_count (`int`, optional) – Number of undistributed prizes

    - giveaway_message (`telegram.Message`, optional) – Message with the giveaway that was completed, if it wasn’t deleted

    - is_star_giveaway (`bool`, optional) –

      `True`, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.

      Added in version 21.6.

  winner_count

    Number of winners in the giveaway

    Type:

      `int`

  unclaimed_prize_count

    Optional. Number of undistributed prizes

    Type:

      `int`

  giveaway_message

    Optional. Message with the giveaway that was completed, if it wasn’t deleted

    Type:

      `telegram.Message`

  is_star_giveaway

    Optional. `True`, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.

    Added in version 21.6.

    Type:

      `bool`

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.