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:



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

def discard_reason
  @discard_reason
end

#durationInteger

Call duration, in seconds.

Returns:

  • (Integer)

    the current value of duration



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

def duration
  @duration
end

#is_videoBoolean

True, if the call was a video call.

Returns:

  • (Boolean)

    the current value of is_video



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

def is_video
  @is_video
end