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
, andsource
are equal.Added in version 20.8.
- Parameters:
add_date (
datetime.datetime
) – Point in time when the chat was boosted.expiration_date (
datetime.datetime
) – Point in time when the boost will automatically expire, unless the booster’s Telegram Premium subscription is prolonged.source (
telegram.ChatBoostSource
) – Source of the added boost.
- 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:
- 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: