Giveaway#

class pyrogram.types.Giveaway#

An giveaway.

Parameters:
  • chats (List of Chat) – Get the list of channels you need to subscribe to.

  • quantity (int) – Number of subscriptions.

  • months (int) – Number of months for which a subscription is given.

  • until_date (datetime) – Date when the giveaway will end.

  • description (str, optional) – Prize description.

  • only_new_subscribers (bool, optional) – True, if this giveaway is for new subscribers only.

  • only_for_countries (List of str , optional) – A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come. If None, then all users can participate in the giveaway. Users with a phone number that was bought on Fragment can always participate in giveaways.

  • winners_are_visible (bool, optional) – True, if this giveaway winners is visible.

  • stars (int, optional) – Stars amount.