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:



10
11
12
# File 'lib/tdlib/types/message_content/photo.rb', line 10

def caption
  @caption
end

#has_spoilerBoolean

True, if the photo preview must be covered by a spoiler animation.

Returns:

  • (Boolean)

    the current value of has_spoiler



10
11
12
# File 'lib/tdlib/types/message_content/photo.rb', line 10

def has_spoiler
  @has_spoiler
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



10
11
12
# File 'lib/tdlib/types/message_content/photo.rb', line 10

def is_secret
  @is_secret
end

#photoTD::Types::Photo

The photo.

Returns:



10
11
12
# File 'lib/tdlib/types/message_content/photo.rb', line 10

def photo
  @photo
end

#show_caption_above_mediaBoolean

True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo.

Returns:

  • (Boolean)

    the current value of show_caption_above_media



10
11
12
# File 'lib/tdlib/types/message_content/photo.rb', line 10

def show_caption_above_media
  @show_caption_above_media
end