boost
Info about one or more boosts applied by a specific user.
type tg.Boost struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Gift | bool | — | Whether this boost was applied because the channel/supergroup directly gifted a subscription to the user. |
Giveaway | bool | — | Whether this boost was applied because the user was chosen in a giveaway started by the channel/supergroup. |
Unclaimed | bool | — | 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 | yes | Unique ID for this set of boosts. |
UserID | int64 | — | ID of the user that applied the boost. |
GiveawayMsgID | int | — | The message ID of the giveaway |
Date | int | yes | When was the boost applied |
Expires | int | yes | When does the boost expire |
UsedGiftSlug | 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 | int64 | — | Number of Telegram Stars distributed among the winners of the giveaway. |
References
- Official documentation
- Generated Go reference
- TL definition:
boost#4b3e14d6