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.

Returns:

  • (Integer)

    the current value of available_count



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.

Returns:

  • (Integer)

    the current value of current_count



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.

Returns:

  • (Integer)

    the current value of next_withdrawal_in



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.

Returns:

  • (Integer)

    the current value of total_count



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.

Returns:

  • (Boolean)

    the current value of withdrawal_enabled



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

def withdrawal_enabled
  @withdrawal_enabled
end