Class: TD::Types::StarRevenueStatus

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

Overview

Contains information about Telegram Stars earned by a bot or a chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#available_countInteger

The number of Telegram Stars that are available for withdrawal.



10
11
12
# File 'lib/tdlib/types/star_revenue_status.rb', line 10

def available_count
  @available_count
end

#current_countInteger

The number of Telegram Stars that aren’t withdrawn yet.



10
11
12
# File 'lib/tdlib/types/star_revenue_status.rb', line 10

def current_count
  @current_count
end

#next_withdrawal_inInteger

Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.



10
11
12
# File 'lib/tdlib/types/star_revenue_status.rb', line 10

def next_withdrawal_in
  @next_withdrawal_in
end

#total_countInteger

Total number of Telegram Stars earned.



10
11
12
# File 'lib/tdlib/types/star_revenue_status.rb', line 10

def total_count
  @total_count
end

#withdrawal_enabledBoolean

True, if Telegram Stars can be withdrawn now or later.



10
11
12
# File 'lib/tdlib/types/star_revenue_status.rb', line 10

def withdrawal_enabled
  @withdrawal_enabled
end