Class: TD::Types::WebPage
- Defined in:
- lib/tdlib/types/web_page.rb
Overview
Describes a web page preview.
Instance Attribute Summary collapse
-
#animation ⇒ TD::Types::Animation?
Preview of the content as an animation, if available; may be null.
-
#audio ⇒ TD::Types::Audio?
Preview of the content as an audio file, if available; may be null.
-
#author ⇒ TD::Types::String
Author of the content.
-
#description ⇒ TD::Types::FormattedText
Description of the content.
-
#display_url ⇒ TD::Types::String
URL to display.
-
#document ⇒ TD::Types::Document?
Preview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null.
-
#duration ⇒ Integer
Duration of the content, in seconds.
-
#embed_height ⇒ Integer
Height of the embedded preview.
-
#embed_type ⇒ TD::Types::String
MIME type of the embedded preview, (e.g., text/html or video/mp4).
-
#embed_url ⇒ TD::Types::String
URL to show in the embedded preview.
-
#embed_width ⇒ Integer
Width of the embedded preview.
-
#instant_view_version ⇒ Integer
Version of instant view, available for the web page (currently can be 1 or 2), 0 if none.
-
#photo ⇒ TD::Types::Photo?
Image representing the content; may be null.
-
#site_name ⇒ TD::Types::String
Short name of the site (e.g., Google Docs, App Store).
-
#sticker ⇒ TD::Types::Sticker?
Preview of the content as a sticker for small WEBP files, if available; may be null.
-
#title ⇒ TD::Types::String
Title of the content.
-
#type ⇒ TD::Types::String
Type of the web page.
-
#url ⇒ TD::Types::String
Original URL of the link.
-
#video ⇒ TD::Types::Video?
Preview of the content as a video, if available; may be null.
-
#video_note ⇒ TD::Types::VideoNote?
Preview of the content as a video note, if available; may be null.
-
#voice_note ⇒ TD::Types::VoiceNote?
Preview of the content as a voice note, if available; may be null.
Method Summary
Methods inherited from Base
Instance Attribute Details
#animation ⇒ TD::Types::Animation?
Preview of the content as an animation, if available; may be null.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def animation @animation end |
#audio ⇒ TD::Types::Audio?
Preview of the content as an audio file, if available; may be null.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def audio @audio end |
#author ⇒ TD::Types::String
Author of the content.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def @author end |
#description ⇒ TD::Types::FormattedText
Description of the content.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def description @description end |
#display_url ⇒ TD::Types::String
URL to display.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def display_url @display_url end |
#document ⇒ TD::Types::Document?
Preview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def document @document end |
#duration ⇒ Integer
Duration of the content, in seconds.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def duration @duration end |
#embed_height ⇒ Integer
Height of the embedded preview.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def @embed_height end |
#embed_type ⇒ TD::Types::String
MIME type of the embedded preview, (e.g., text/html or video/mp4).
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def @embed_type end |
#embed_url ⇒ TD::Types::String
URL to show in the embedded preview.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def @embed_url end |
#embed_width ⇒ Integer
Width of the embedded preview.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def @embed_width end |
#instant_view_version ⇒ Integer
Version of instant view, available for the web page (currently can be 1 or 2), 0 if none.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def instant_view_version @instant_view_version end |
#photo ⇒ TD::Types::Photo?
Image representing the content; may be null.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def photo @photo end |
#site_name ⇒ TD::Types::String
Short name of the site (e.g., Google Docs, App Store).
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def site_name @site_name end |
#sticker ⇒ TD::Types::Sticker?
Preview of the content as a sticker for small WEBP files, if available; may be null.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def sticker @sticker end |
#title ⇒ TD::Types::String
Title of the content.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def title @title end |
#type ⇒ TD::Types::String
Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def type @type end |
#url ⇒ TD::Types::String
Original URL of the link.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def url @url end |
#video ⇒ TD::Types::Video?
Preview of the content as a video, if available; may be null.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def video @video end |
#video_note ⇒ TD::Types::VideoNote?
Preview of the content as a video note, if available; may be null.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def video_note @video_note end |
#voice_note ⇒ TD::Types::VoiceNote?
Preview of the content as a voice note, if available; may be null.
29 30 31 |
# File 'lib/tdlib/types/web_page.rb', line 29 def voice_note @voice_note end |