Class: TD::Types::WebPageInstantView

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

Overview

Describes an instant view page for a web page.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_fullBoolean

True, if the instant view contains the full page. A network request might be needed to get the full web page instant view.

Returns:

  • (Boolean)

    the current value of is_full



11
12
13
# File 'lib/tdlib/types/web_page_instant_view.rb', line 11

def is_full
  @is_full
end

#is_rtlBoolean

True, if the instant view must be shown from right to left.

Returns:

  • (Boolean)

    the current value of is_rtl



11
12
13
# File 'lib/tdlib/types/web_page_instant_view.rb', line 11

def is_rtl
  @is_rtl
end

#page_blocksArray<TD::Types::PageBlock>

Content of the web page.

Returns:



11
12
13
# File 'lib/tdlib/types/web_page_instant_view.rb', line 11

def page_blocks
  @page_blocks
end

#urlString

Instant view URL; may be different from WebPage.url and must be used for the correct anchors handling.

Returns:

  • (String)

    the current value of url



11
12
13
# File 'lib/tdlib/types/web_page_instant_view.rb', line 11

def url
  @url
end

#versionInteger

Version of the instant view, currently can be 1 or 2.

Returns:

  • (Integer)

    the current value of version



11
12
13
# File 'lib/tdlib/types/web_page_instant_view.rb', line 11

def version
  @version
end