Class: TD::Types::LinkPreviewType::Background

Inherits:
TD::Types::LinkPreviewType show all
Defined in:
lib/tdlib/types/link_preview_type/background.rb

Overview

The link is a link to a background. Link preview title and description are available only for filled backgrounds.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#background_typeTD::Types::BackgroundType?

Type of the background; may be null if unknown.

Returns:



7
8
9
# File 'lib/tdlib/types/link_preview_type/background.rb', line 7

def background_type
  @background_type
end

#documentTD::Types::Document?

Document with the background; may be null for filled backgrounds.

Returns:



7
8
9
# File 'lib/tdlib/types/link_preview_type/background.rb', line 7

def document
  @document
end