telegram api constructor · layer 229 · #4b3e14d6
boost
Info about one or more boosts applied by a specific user.
definition
boost#4b3e14d6 flags:# gift:flags.1?true giveaway:flags.2?true unclaimed:flags.3?true id:string user_id:flags.0?long giveaway_msg_id:flags.2?int date:int expires:int used_gift_slug:flags.4?string multiplier:flags.5?int stars:flags.6?long = Boost;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
gift | true | Whether this boost was applied because the channel/supergroup directly gifted a subscription to the user. |
giveaway | true | Whether this boost was applied because the user was chosen in a giveaway started by the channel/supergroup. |
unclaimed | true | If set, the user hasn't yet invoked payments.applyGiftCode to claim a subscription gifted directly or in a giveaway by the channel. |
id | string | Unique ID for this set of boosts. |
user_id | long | ID of the user that applied the boost. |
giveaway_msg_id | int | The message ID of the giveaway |
date | int | When was the boost applied |
expires | int | When does the boost expire |
used_gift_slug | string | The 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. |
multiplier | int | If set, this boost counts as multiplier boosts, otherwise it counts as a single boost. |
stars | long | Number of Telegram Stars distributed among the winners of the giveaway. |
type
history
present in layers 166–229 · constructor id changed 1×
| id | layers |
|---|---|
| #2a1c8c71 | 166–186 |
| #4b3e14d6 | 187–229 |