Skip to main content

boost

Info about one or more boosts applied by a specific user.

type tg.Boost struct { /* ... */ }

Fields

NameTypeRequiredDescription
GiftboolWhether this boost was applied because the channel/supergroup directly gifted a subscription to the user.
GiveawayboolWhether this boost was applied because the user was chosen in a giveaway started by the channel/supergroup.
UnclaimedboolIf set, the user hasn't yet invoked payments.applyGiftCode to claim a subscription gifted directly or in a giveaway by the channel.
IDstringyesUnique ID for this set of boosts.
UserIDint64ID of the user that applied the boost.
GiveawayMsgIDintThe message ID of the giveaway
DateintyesWhen was the boost applied
ExpiresintyesWhen does the boost expire
UsedGiftSlugstringThe created Telegram Premium gift code, only set if either gift or giveaway are set AND it is either a gift code for the currently logged in user or if it was already claimed.
MultiplierintIf set, this boost counts as multiplier boosts, otherwise it counts as a single boost.
Starsint64Number of Telegram Stars distributed among the winners of the giveaway.

References