Class: TD::Types::LinkPreview
- Defined in:
- lib/tdlib/types/link_preview.rb
Overview
Describes a link preview.
Instance Attribute Summary collapse
-
#description ⇒ TD::Types::FormattedText
Description of the content.
-
#display_url ⇒ TD::Types::String
URL to display.
-
#has_large_media ⇒ Boolean
True, if size of media in the preview can be changed.
-
#instant_view_version ⇒ Integer
Version of instant view (currently, can be 1 or 2) for the web page; 0 if none.
-
#show_above_text ⇒ Boolean
True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text.
-
#show_large_media ⇒ Boolean
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.
-
#show_media_above_description ⇒ Boolean
True, if media must be shown above link preview description; otherwise, the media must be shown below the description.
-
#site_name ⇒ TD::Types::String
Short name of the site (e.g., Google Docs, App Store).
-
#skip_confirmation ⇒ Boolean
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.
-
#title ⇒ TD::Types::String
Title of the content.
-
#type ⇒ TD::Types::LinkPreviewType
Type of the link preview.
-
#url ⇒ TD::Types::String
Original URL of the link.
Method Summary
Methods inherited from Base
Instance Attribute Details
#description ⇒ TD::Types::FormattedText
Description of the content.
21 22 23 |
# File 'lib/tdlib/types/link_preview.rb', line 21 def description @description end |
#display_url ⇒ TD::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_media ⇒ Boolean
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_version ⇒ Integer
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_text ⇒ Boolean
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_media ⇒ Boolean
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_description ⇒ Boolean
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_name ⇒ TD::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_confirmation ⇒ Boolean
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 |
#title ⇒ TD::Types::String
Title of the content.
21 22 23 |
# File 'lib/tdlib/types/link_preview.rb', line 21 def title @title end |
#type ⇒ TD::Types::LinkPreviewType
Type of the link preview.
21 22 23 |
# File 'lib/tdlib/types/link_preview.rb', line 21 def type @type end |
#url ⇒ TD::Types::String
Original URL of the link.
21 22 23 |
# File 'lib/tdlib/types/link_preview.rb', line 21 def url @url end |