Class: TD::Types::LinkPreview

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

Overview

Describes a link preview.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#descriptionTD::Types::FormattedText

Description of the content.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def description
  @description
end

#display_urlTD::Types::String

URL to display.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def display_url
  @display_url
end

#has_large_mediaBoolean

True, if size of media in the preview can be changed.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def has_large_media
  @has_large_media
end

#instant_view_versionInteger

Version of instant view (currently, can be 1 or 2) for the web page; 0 if none.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def instant_view_version
  @instant_view_version
end

#show_above_textBoolean

True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def show_above_text
  @show_above_text
end

#show_large_mediaBoolean

True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def show_large_media
  @show_large_media
end

#show_media_above_descriptionBoolean

True, if media must be shown above link preview description; otherwise, the media must be shown below the description.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def show_media_above_description
  @show_media_above_description
end

#site_nameTD::Types::String

Short name of the site (e.g., Google Docs, App Store).



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def site_name
  @site_name
end

#skip_confirmationBoolean

True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def skip_confirmation
  @skip_confirmation
end

#titleTD::Types::String

Title of the content.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def title
  @title
end

#typeTD::Types::LinkPreviewType

Type of the link preview.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def type
  @type
end

#urlTD::Types::String

Original URL of the link.



21
22
23
# File 'lib/tdlib/types/link_preview.rb', line 21

def url
  @url
end