ChatBoostSourceGiveaway¶
New in version 20.8.
- class telegram.ChatBoostSourceGiveaway(giveaway_message_id, user=None, is_unclaimed=None, *, api_kwargs=None)[source]¶
Bases:
telegram.ChatBoostSource
The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
New in version 20.8.
- Parameters:
giveaway_message_id (
int
) – Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn’t sent yet.user (
telegram.User
, optional) – User that won the prize in the giveaway if any.is_unclaimed (
bool
, optional) –True
, if the giveaway was completed, but there was no user to win the prize.
- giveaway_message_id[source]¶
Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn’t sent yet.
- Type: