Class: TD::Types::MessageContent::Photo

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

Overview

A photo message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#captionTD::Types::FormattedText

Photo caption.

Returns:



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

def caption
  @caption
end

#is_secretBoolean

True, if the photo must be blurred and must be shown only while tapped.

Returns:

  • (Boolean)

    the current value of is_secret



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

def is_secret
  @is_secret
end

#photoTD::Types::Photo

The photo description.

Returns:



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

def photo
  @photo
end