Class: TD::Types::PageBlock::EmbeddedPost

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

Overview

An embedded post.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#authorTD::Types::String

Post author.

Returns:

  • (TD::Types::String)

    the current value of author



10
11
12
# File 'lib/tdlib/types/page_block/embedded_post.rb', line 10

def author
  @author
end

#author_photoTD::Types::Photo?

Post author photo; may be null.

Returns:



10
11
12
# File 'lib/tdlib/types/page_block/embedded_post.rb', line 10

def author_photo
  @author_photo
end

#captionTD::Types::PageBlockCaption

Post caption.

Returns:



10
11
12
# File 'lib/tdlib/types/page_block/embedded_post.rb', line 10

def caption
  @caption
end

#dateInteger

Point in time (Unix timestamp) when the post was created; 0 if unknown.

Returns:

  • (Integer)

    the current value of date



10
11
12
# File 'lib/tdlib/types/page_block/embedded_post.rb', line 10

def date
  @date
end

#page_blocksArray<TD::Types::PageBlock>

Post content.

Returns:



10
11
12
# File 'lib/tdlib/types/page_block/embedded_post.rb', line 10

def page_blocks
  @page_blocks
end

#urlTD::Types::String

Web page URL.

Returns:

  • (TD::Types::String)

    the current value of url



10
11
12
# File 'lib/tdlib/types/page_block/embedded_post.rb', line 10

def url
  @url
end