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

#caption ⇒ String

Photo caption.

Returns:

  • the current value of caption



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

def caption
  @caption
end

#is_pinned ⇒ Boolean

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

Returns:

  • 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_secret ⇒ Boolean

True, if the photo is secret.

Returns:

  • 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

#photo ⇒ TD::Types::Photo?

Message content; may be null.

Returns:

  • the current value of photo



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

def photo
  @photo
end