ChatBoost

Added in version 20.8.

class telegram.ChatBoost(boost_id, add_date, expiration_date, source, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object contains information about a chat boost.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their boost_id, add_date, expiration_date, and source are equal.

Added in version 20.8.

Parameters:
boost_id[source]

Unique identifier of the boost.

Type:

str

add_date[source]

Point in time when the chat was boosted. The default timezone of the bot is used for localization, which is UTC unless telegram.ext.Defaults.tzinfo is used.

Type:

datetime.datetime

expiration_date[source]

Point in time when the boost will automatically expire, unless the booster’s Telegram Premium subscription is prolonged. The default timezone of the bot is used for localization, which is UTC unless telegram.ext.Defaults.tzinfo is used.

Type:

datetime.datetime

source[source]

Source of the added boost.

Type:

telegram.ChatBoostSource

classmethod de_json(data, bot=None)[source]

See telegram.TelegramObject.de_json().