Class: TD::Types::ChatBoostStatus
- Defined in:
- lib/tdlib/types/chat_boost_status.rb
Overview
Describes current boost status of a chat.
Instance Attribute Summary collapse
-
#applied_slot_ids ⇒ Array<Integer>
Identifiers of boost slots of the current user applied to the chat.
-
#boost_count ⇒ Integer
The number of boosts received by the chat.
-
#boost_url ⇒ TD::Types::String
An HTTP URL, which can be used to boost the chat.
-
#current_level_boost_count ⇒ Integer
The number of boosts added to reach the current level.
-
#gift_code_boost_count ⇒ Integer
The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the current user isn’t an administrator in the chat.
-
#level ⇒ Integer
Current boost level of the chat.
-
#next_level_boost_count ⇒ Integer
The number of boosts needed to reach the next level; 0 if the next level isn’t available.
-
#premium_member_count ⇒ Integer
Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat.
-
#premium_member_percentage ⇒ Float
A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat.
-
#prepaid_giveaways ⇒ Array<TD::Types::PrepaidPremiumGiveaway>
The list of prepaid giveaways available for the chat; only for chat administrators.
Method Summary
Methods inherited from Base
Instance Attribute Details
#applied_slot_ids ⇒ Array<Integer>
Identifiers of boost slots of the current user applied to the chat.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def applied_slot_ids @applied_slot_ids end |
#boost_count ⇒ Integer
The number of boosts received by the chat.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def boost_count @boost_count end |
#boost_url ⇒ TD::Types::String
An HTTP URL, which can be used to boost the chat.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def boost_url @boost_url end |
#current_level_boost_count ⇒ Integer
The number of boosts added to reach the current level.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def current_level_boost_count @current_level_boost_count end |
#gift_code_boost_count ⇒ Integer
The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the current user isn’t an administrator in the chat.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def gift_code_boost_count @gift_code_boost_count end |
#level ⇒ Integer
Current boost level of the chat.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def level @level end |
#next_level_boost_count ⇒ Integer
The number of boosts needed to reach the next level; 0 if the next level isn’t available.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def next_level_boost_count @next_level_boost_count end |
#premium_member_count ⇒ Integer
Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def premium_member_count @premium_member_count end |
#premium_member_percentage ⇒ Float
A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def premium_member_percentage @premium_member_percentage end |
#prepaid_giveaways ⇒ Array<TD::Types::PrepaidPremiumGiveaway>
The list of prepaid giveaways available for the chat; only for chat administrators.
19 20 21 |
# File 'lib/tdlib/types/chat_boost_status.rb', line 19 def prepaid_giveaways @prepaid_giveaways end |