Giveaway

class pyrogram.types.Giveaway

A giveaway.

Parameters:
  • chats (List of Chat) – List of channel(s) which host the giveaway.

  • quantity (int) – Quantity of the giveaway prize.

  • months (int) – How long the telegram premium last (in month).

  • expire_date (datetime) – Date the giveaway winner(s) will be choosen.

  • new_subscribers (bool) – True, if the giveaway only for new subscribers.

  • allowed_countries (List of str, optional) – List of ISO country codes which eligible to join the giveaway.

  • private_channel_ids (List of int, optional) – List of Unique channel identifier of private channel which host the giveaway.