Class: TD::Types::MessageContent::Call

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/call.rb

Overview

A message with information about an ended call.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#discard_reasonTD::Types::CallDiscardReason

Reason why the call was discarded.

Returns:



6
7
8
# File 'lib/tdlib/types/message_content/call.rb', line 6

def discard_reason
  @discard_reason
end

#durationInteger

Call duration, in seconds.

Returns:

  • (Integer)

    the current value of duration



6
7
8
# File 'lib/tdlib/types/message_content/call.rb', line 6

def duration
  @duration
end