mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
2.7 KiB
2.7 KiB
title | description | nav_exclude | image | redirect_from |
---|---|---|---|---|
premium.boostsStatus | Contains info about the current boost status of a peer. | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/constructors/premium_boostsStatus.html |
Constructor: premium.boostsStatus
Contains info about the current boost status of a peer.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
my_boost | Bool | Optional | Whether we're currently boosting this channel, my_boost_slots will also be set. |
level | int | Yes | The current boost level of the channel. |
current_level_boosts | int | Yes | The number of boosts acquired so far in the current level. |
boosts | int | Yes | Total number of boosts acquired so far. |
gift_boosts | int | Optional | The number of boosts acquired from created Telegram Premium gift codes and giveaways; only returned to channel admins. |
next_level_boosts | int | Optional | Total number of boosts needed to reach the next level; if absent, the next level isn't available. |
premium_audience | StatsPercentValue | Optional | Only returned to channel admins: contains the approximated number of Premium users subscribed to the channel, related to the total number of subscribers. |
boost_url | string | Yes | Boost deep link » that can be used to boost the chat. |
prepaid_giveaways | Array of PrepaidGiveaway | Optional | A list of prepaid giveaways available for the chat; only returned to channel admins. |
my_boost_slots | Array of int | Optional | Indicates which of our boost slots we've assigned to this peer (populated if my_boost is set). |
Type: premium.BoostsStatus
Example:
$premium_boostsStatus = ['_' => 'premium.boostsStatus', 'my_boost' => Bool, 'level' => int, 'current_level_boosts' => int, 'boosts' => int, 'gift_boosts' => int, 'next_level_boosts' => int, 'premium_audience' => StatsPercentValue, 'boost_url' => 'string', 'prepaid_giveaways' => [PrepaidGiveaway, PrepaidGiveaway], 'my_boost_slots' => [int, int]];