Class: TD::Types::Update::ChatRevenueAmount

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/chat_revenue_amount.rb

Overview

The revenue earned from sponsored messages in a chat has changed. If chat revenue screen is opened, then getChatRevenueTransactions may be called to fetch new transactions.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_idInteger

Identifier of the chat.

Returns:

  • (Integer)

    the current value of chat_id



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

def chat_id
  @chat_id
end

#revenue_amountTD::Types::ChatRevenueAmount

New amount of earned revenue.

Returns:



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

def revenue_amount
  @revenue_amount
end