Class: TD::Types::InternalLinkType::InstantView

Inherits:
TD::Types::InternalLinkType show all
Defined in:
lib/tdlib/types/internal_link_type/instant_view.rb

Overview

The link must be opened in an Instant View. Call getWebPageInstantView with the given URL to process the link. If Instant View is found, then show it, otherwise, open the fallback URL in an external browser.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#fallback_urlTD::Types::String

An URL to open if getWebPageInstantView fails.

Returns:

  • (TD::Types::String)

    the current value of fallback_url



8
9
10
# File 'lib/tdlib/types/internal_link_type/instant_view.rb', line 8

def fallback_url
  @fallback_url
end

#urlTD::Types::String

URL to be passed to getWebPageInstantView.

Returns:

  • (TD::Types::String)

    the current value of url



8
9
10
# File 'lib/tdlib/types/internal_link_type/instant_view.rb', line 8

def url
  @url
end