Class: TD::Types::ChatBoostStatus

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/chat_boost_status.rb

Overview

Describes current boost status of a chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#applied_slot_idsArray<Integer>

Identifiers of boost slots of the current user applied to the chat.

Returns:

  • (Array<Integer>)

    the current value of applied_slot_ids



19
20
21
# File 'lib/tdlib/types/chat_boost_status.rb', line 19

def applied_slot_ids
  @applied_slot_ids
end

#boost_countInteger

The number of boosts received by the chat.

Returns:

  • (Integer)

    the current value of boost_count



19
20
21
# File 'lib/tdlib/types/chat_boost_status.rb', line 19

def boost_count
  @boost_count
end

#boost_urlTD::Types::String

An HTTP URL, which can be used to boost the chat.

Returns:

  • (TD::Types::String)

    the current value of boost_url



19
20
21
# File 'lib/tdlib/types/chat_boost_status.rb', line 19

def boost_url
  @boost_url
end

#current_level_boost_countInteger

The number of boosts added to reach the current level.

Returns:

  • (Integer)

    the current value of current_level_boost_count



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_countInteger

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.

Returns:

  • (Integer)

    the current value of gift_code_boost_count



19
20
21
# File 'lib/tdlib/types/chat_boost_status.rb', line 19

def gift_code_boost_count
  @gift_code_boost_count
end

#levelInteger

Current boost level of the chat.

Returns:

  • (Integer)

    the current value of level



19
20
21
# File 'lib/tdlib/types/chat_boost_status.rb', line 19

def level
  @level
end

#next_level_boost_countInteger

The number of boosts needed to reach the next level; 0 if the next level isn’t available.

Returns:

  • (Integer)

    the current value of next_level_boost_count



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_countInteger

Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat.

Returns:

  • (Integer)

    the current value of premium_member_count



19
20
21
# File 'lib/tdlib/types/chat_boost_status.rb', line 19

def premium_member_count
  @premium_member_count
end

#premium_member_percentageFloat

A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat.

Returns:

  • (Float)

    the current value of premium_member_percentage



19
20
21
# File 'lib/tdlib/types/chat_boost_status.rb', line 19

def premium_member_percentage
  @premium_member_percentage
end

#prepaid_giveawaysArray<TD::Types::PrepaidPremiumGiveaway>

The list of prepaid giveaways available for the chat; only for chat administrators.

Returns:



19
20
21
# File 'lib/tdlib/types/chat_boost_status.rb', line 19

def prepaid_giveaways
  @prepaid_giveaways
end