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
, optional) – How long the telegram premium last (in month).stars (
int
, optional) – How many stars the giveaway winner(s) get.expire_date (
datetime
) – Date the giveaway winner(s) will be choosen.new_subscribers (
bool
) – True, if the giveaway only for new subscribers.additional_price (
str
, optional) – Additional prize for the giveaway winner(s).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.is_winners_hidden (
bool
) – True, if the giveaway winners are hidden.