ChatBoostSourceGiftCode

Added in version 20.8.

class telegram.ChatBoostSourceGiftCode(user, *, api_kwargs=None)[source]

Bases: telegram.ChatBoostSource

The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.

Added in version 20.8.

Parameters:

user (telegram.User) – User for which the gift code was created.

source[source]

The source of the chat boost. Always GIFT_CODE.

Type:

str

user[source]

User for which the gift code was created.

Type:

telegram.User