premium.BoostsStatus

class pyrogram.raw.types.premium.BoostsStatus

Contains info about the current boost status of a peer.

Constructor of BoostsStatus.

Details:
  • Layer: 194

  • ID: 4959427A

Parameters:
  • level (int 32-bit) – The current boost level of the channel.

  • current_level_boosts (int 32-bit) – The number of boosts acquired so far in the current level.

  • boosts (int 32-bit) – Total number of boosts acquired so far.

  • boost_url (str) – Boost deep link » that can be used to boost the chat.

  • my_boost (bool, optional) – Whether we’re currently boosting this channel, my_boost_slots will also be set.

  • gift_boosts (int 32-bit, optional) – The number of boosts acquired from created Telegram Premium gift codes and giveaways; only returned to channel admins.

  • next_level_boosts (int 32-bit, 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.

  • prepaid_giveaways (List of PrepaidGiveaway, optional) – A list of prepaid giveaways available for the chat; only returned to channel admins.

  • my_boost_slots (List of int 32-bit, optional) – Indicates which of our boost slots we’ve assigned to this peer (populated if my_boost is set).

Functions:

This object can be returned by 1 function.

premium.GetBoostsStatus

Gets the current number of boosts of a channel.