Class: TD::Types::ChatRevenueTransaction

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

Overview

Contains a chat revenue transactions.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#cryptocurrencyTD::Types::String

Cryptocurrency in which revenue is calculated.

Returns:

  • (TD::Types::String)

    the current value of cryptocurrency



7
8
9
# File 'lib/tdlib/types/chat_revenue_transaction.rb', line 7

def cryptocurrency
  @cryptocurrency
end

#cryptocurrency_amountInteger

The withdrawn amount, in the smallest units of the cryptocurrency.

Returns:

  • (Integer)

    the current value of cryptocurrency_amount



7
8
9
# File 'lib/tdlib/types/chat_revenue_transaction.rb', line 7

def cryptocurrency_amount
  @cryptocurrency_amount
end

#typeTD::Types::ChatRevenueTransactionType

Type of the transaction.

Returns:



7
8
9
# File 'lib/tdlib/types/chat_revenue_transaction.rb', line 7

def type
  @type
end