Layer 227
PremiumBoostsStatusObj
Contains info about the current boost status of a peer.
constructor
premium.boostsStatus#4959427a flags:# my_boost:flags.2?true level:int current_level_boosts:int boosts:int gift_boosts:flags.4?int next_level_boosts:flags.0?int premium_audience:flags.1?StatsPercentValue boost_url:string prepaid_giveaways:flags.3?Vector<PrepaidGiveaway> my_boost_slots:flags.2?Vector<int> = premium.BoostsStatus;
Parameters
| Name | Type | Description |
|---|---|---|
| MyBoost | flags .2? true | Whether we're currently boosting this channel/supergroup, my_boost_slots will also be set. |
| Level | int | The current boost level of the channel/supergroup. |
| CurrentLevelBoosts | int | The number of boosts acquired so far in the current level. |
| Boosts | int | Total number of boosts acquired so far. |
| GiftBoosts | flags .4? int | The number of boosts acquired from created Telegram Premium gift codes and giveaways; only returned to channel/supergroup admins. |
| NextLevelBoosts | flags .0? int | Total number of boosts needed to reach the next level; if absent, the next level isn't available. |
| PremiumAudience | flags .1? StatsPercentValue | Only returned to channel/supergroup admins: contains the approximated number of Premium users subscribed to the channel/supergroup, related to the total number of subscribers. |
| BoostUrl | string | Boost deep link that can be used to boost the chat. |
| PrepaidGiveaways | flags .3? Vector < PrepaidGiveaway > | A list of prepaid giveaways available for the chat; only returned to channel/supergroup admins. |
| MyBoostSlots | flags .2? Vector < int > | Indicates which of our boost slots we've assigned to this peer (populated if my_boost is set). |
Returns
premium.BoostsStatusGogram Example
// Creating PremiumBoostsStatusObj constructor obj := &tg.PremiumBoostsStatusObj{ MyBoost: nil, Level: 42, CurrentLevelBoosts: 42, Boosts: 42, GiftBoosts: nil, NextLevelBoosts: nil, // ... more required fields }