ChatBoostSource

New in version 20.8.

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

Bases: telegram.TelegramObject

Base class for Telegram ChatBoostSource objects. It can be one of:

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their source is equal.

New in version 20.8.

Parameters:

source (str) – The source of the chat boost. Can be one of: PREMIUM, GIFT_CODE, or GIVEAWAY.

source[source]

The source of the chat boost. Can be one of: PREMIUM, GIFT_CODE, or GIVEAWAY.

Type:

str

GIFT_CODE = 'gift_code'[source]

telegram.constants.ChatBoostSources.GIFT_CODE

GIVEAWAY = 'giveaway'[source]

telegram.constants.ChatBoostSources.GIVEAWAY

PREMIUM = 'premium'[source]

telegram.constants.ChatBoostSources.PREMIUM

classmethod de_json(data, bot)[source]

See telegram.TelegramObject.de_json().