Class: TD::Types::ChatRevenueAmount

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

Overview

Contains information about revenue earned from sponsored messages in a chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#available_amountInteger

Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency.

Returns:

  • (Integer)

    the current value of available_amount



11
12
13
# File 'lib/tdlib/types/chat_revenue_amount.rb', line 11

def available_amount
  @available_amount
end

#balance_amountInteger

Amount of the cryptocurrency that isn’t withdrawn yet, in the smallest units of the cryptocurrency.

Returns:

  • (Integer)

    the current value of balance_amount



11
12
13
# File 'lib/tdlib/types/chat_revenue_amount.rb', line 11

def balance_amount
  @balance_amount
end

#cryptocurrencyTD::Types::String

Cryptocurrency in which revenue is calculated.

Returns:

  • (TD::Types::String)

    the current value of cryptocurrency



11
12
13
# File 'lib/tdlib/types/chat_revenue_amount.rb', line 11

def cryptocurrency
  @cryptocurrency
end

#total_amountInteger

Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency.

Returns:

  • (Integer)

    the current value of total_amount



11
12
13
# File 'lib/tdlib/types/chat_revenue_amount.rb', line 11

def total_amount
  @total_amount
end