peyk.platforms.telegram.types.chat_boost

Classes

ChatBoost(boost_id, add_date, ...)

This object contains information about a chat boost.

class peyk.platforms.telegram.types.chat_boost.ChatBoost(boost_id: str, add_date: int, expiration_date: int, source: ChatBoostSource)[source]

Bases: object

This object contains information about a chat boost.

Variables:
  • boost_id (str) – Unique identifier of the boost

  • add_date (int) – Point in time (Unix timestamp) when the chat was boosted

  • expiration_date (int) – Point in time (Unix timestamp) when the boost will automatically expire, unless the booster’s Telegram Premium subscription is prolonged

  • source (peyk.platforms.telegram.types.chat_boost_source.ChatBoostSource) – Source of the added boost

boost_id: str
add_date: int
expiration_date: int
source: ChatBoostSource
classmethod from_dict(data: dict | None) ChatBoost | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.