Sha256: 7980b4ea7695972b70debf9ce1714e2b2b1182c27bd29e003ef35459ace0a127

Contents?: true

Size: 873 Bytes

Versions: 3

Compression:

Stored size: 873 Bytes

Contents

module TD::Types
  # Contains information about a related article.
  #
  # @attr url [String] Related article URL.
  # @attr title [String, nil] Article title; may be empty.
  # @attr description [String, nil] Article description; may be empty.
  # @attr photo [TD::Types::Photo, nil] Article photo; may be null.
  # @attr author [String, nil] Article author; may be empty.
  # @attr publish_date [Integer] Point in time (Unix timestamp) when the article was published; 0 if unknown.
  class PageBlockRelatedArticle < Base
    attribute :url, TD::Types::String
    attribute :title, TD::Types::String.optional.default(nil)
    attribute :description, TD::Types::String.optional.default(nil)
    attribute :photo, TD::Types::Photo.optional.default(nil)
    attribute :author, TD::Types::String.optional.default(nil)
    attribute :publish_date, TD::Types::Integer
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
tdlib-schema-1.7.0.1 lib/tdlib/types/page_block_related_article.rb
tdlib-ruby-2.2.0 lib/tdlib/types/page_block_related_article.rb
tdlib-ruby-2.1.0 lib/tdlib/types/page_block_related_article.rb