Class: TD::Types::PageBlockRelatedArticle

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/page_block_related_article.rb

Overview

Contains information about a related article.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#authorTD::Types::String?

Article author; may be empty.

Returns:

  • (TD::Types::String, nil)

    the current value of author



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

def author
  @author
end

#descriptionTD::Types::String?

Article description; may be empty.

Returns:

  • (TD::Types::String, nil)

    the current value of description



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

def description
  @description
end

#photoTD::Types::Photo?

Article photo; may be null.

Returns:



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

def photo
  @photo
end

#publish_dateInteger

Point in time (Unix timestamp) when the article was published; 0 if unknown.

Returns:

  • (Integer)

    the current value of publish_date



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

def publish_date
  @publish_date
end

#titleTD::Types::String?

Article title; may be empty.

Returns:

  • (TD::Types::String, nil)

    the current value of title



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

def title
  @title
end

#urlTD::Types::String

Related article URL.

Returns:

  • (TD::Types::String)

    the current value of url



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

def url
  @url
end