Class: TD::Types::PageBlock::Photo

Inherits:
TD::Types::PageBlock show all
Defined in:
lib/tdlib/types/page_block/photo.rb

Overview

A photo.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#captionTD::Types::PageBlockCaption

Photo caption.

Returns:



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

def caption
  @caption
end

#photoTD::Types::Photo?

Photo file; may be null.

Returns:



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

def photo
  @photo
end

#urlString

URL that needs to be opened when the photo is clicked.

Returns:

  • (String)

    the current value of url



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

def url
  @url
end