Class: TD::Types::PushMessageContent::Photo

Inherits:
TD::Types::PushMessageContent show all
Defined in:
lib/tdlib/types/push_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

#captionString

Photo caption.

Returns:

  • (String)

    the current value of caption



8
9
10
# File 'lib/tdlib/types/push_message_content/photo.rb', line 8

def caption
  @caption
end

#is_pinnedBoolean

True, if the message is a pinned message with the specified content.

Returns:

  • (Boolean)

    the current value of is_pinned



8
9
10
# File 'lib/tdlib/types/push_message_content/photo.rb', line 8

def is_pinned
  @is_pinned
end

#is_secretBoolean

True, if the photo is secret.

Returns:

  • (Boolean)

    the current value of is_secret



8
9
10
# File 'lib/tdlib/types/push_message_content/photo.rb', line 8

def is_secret
  @is_secret
end

#photoTD::Types::Photo?

Message content; may be null.

Returns:



8
9
10
# File 'lib/tdlib/types/push_message_content/photo.rb', line 8

def photo
  @photo
end