ChatBoost

@Serializable
data class ChatBoost(val boostId: String, val addDate: Instant, val expirationDate: Instant, val source: ChatBoostSource)

This object contains information about a chat boost.

Api reference

Constructors

Link copied to clipboard
constructor(boostId: String, addDate: Instant, expirationDate: Instant, source: ChatBoostSource)

Properties

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val addDate: Instant

Point in time (Unix timestamp) when the chat was boosted

Link copied to clipboard

Unique identifier of the boost

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val expirationDate: Instant

Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged

Link copied to clipboard

Source of the added boost