Sha256: 55942ce504b64394c5825ff1fb3d647b9d0a01802b0da8456762f9f641f06bfa

Contents?: true

Size: 786 Bytes

Versions: 3

Compression:

Stored size: 786 Bytes

Contents

module TD::Types
  # An embedded post.
  #
  # @attr url [String] Web page URL.
  # @attr author [String] Post author.
  # @attr author_photo [TD::Types::Photo, nil] Post author photo; may be null.
  # @attr date [Integer] Point in time (Unix timestamp) when the post was created; 0 if unknown.
  # @attr page_blocks [Array<TD::Types::PageBlock>] Post content.
  # @attr caption [TD::Types::PageBlockCaption] Post caption.
  class PageBlock::EmbeddedPost < PageBlock
    attribute :url, TD::Types::String
    attribute :author, TD::Types::String
    attribute :author_photo, TD::Types::Photo.optional.default(nil)
    attribute :date, TD::Types::Integer
    attribute :page_blocks, TD::Types::Array.of(TD::Types::PageBlock)
    attribute :caption, TD::Types::PageBlockCaption
  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/embedded_post.rb
tdlib-ruby-2.2.0 lib/tdlib/types/page_block/embedded_post.rb
tdlib-ruby-2.1.0 lib/tdlib/types/page_block/embedded_post.rb