Class: TD::Types::WebPage

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

Overview

Describes a web page preview.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#animationTD::Types::Animation?

Preview of the content as an animation, if available; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def animation
  @animation
end

#audioTD::Types::Audio?

Preview of the content as an audio file, if available; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def audio
  @audio
end

#authorString

Author of the content.

Returns:

  • (String)

    the current value of author



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def author
  @author
end

#descriptionString

Description of the content.

Returns:

  • (String)

    the current value of description



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def description
  @description
end

#display_urlString

URL to display.

Returns:

  • (String)

    the current value of display_url



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def display_url
  @display_url
end

#documentTD::Types::Document?

Preview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def document
  @document
end

#durationInteger

Duration of the content, in seconds.

Returns:

  • (Integer)

    the current value of duration



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def duration
  @duration
end

#embed_heightInteger

Height of the embedded preview.

Returns:

  • (Integer)

    the current value of embed_height



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def embed_height
  @embed_height
end

#embed_typeString

MIME type of the embedded preview, (e.g., text/html or video/mp4).

Returns:

  • (String)

    the current value of embed_type



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def embed_type
  @embed_type
end

#embed_urlString

URL to show in the embedded preview.

Returns:

  • (String)

    the current value of embed_url



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def embed_url
  @embed_url
end

#embed_widthInteger

Width of the embedded preview.

Returns:

  • (Integer)

    the current value of embed_width



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def embed_width
  @embed_width
end

#instant_view_versionInteger

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

Returns:

  • (Integer)

    the current value of instant_view_version



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def instant_view_version
  @instant_view_version
end

#photoTD::Types::Photo?

Image representing the content; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def photo
  @photo
end

#site_nameString

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

Returns:

  • (String)

    the current value of site_name



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def site_name
  @site_name
end

#stickerTD::Types::Sticker?

Preview of the content as a sticker for small WEBP files, if available; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def sticker
  @sticker
end

#titleString

Title of the content.

Returns:

  • (String)

    the current value of title



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def title
  @title
end

#typeString

Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else.

Returns:

  • (String)

    the current value of type



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def type
  @type
end

#urlString

Original URL of the link.

Returns:

  • (String)

    the current value of url



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def url
  @url
end

#videoTD::Types::Video?

Preview of the content as a video, if available; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def video
  @video
end

#video_noteTD::Types::VideoNote?

Preview of the content as a video note, if available; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def video_note
  @video_note
end

#voice_noteTD::Types::VoiceNote?

Preview of the content as a voice note, if available; may be null.

Returns:



29
30
31
# File 'lib/tdlib/types/web_page.rb', line 29

def voice_note
  @voice_note
end