Class: TD::Types::LinkPreviewOptions

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

Overview

Options to be used for generation of a link preview.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#force_large_mediaBoolean

True, if shown media preview must be large; ignored in secret chats or if the URL isn’t explicitly specified.

Returns:

  • (Boolean)

    the current value of force_large_media



13
14
15
# File 'lib/tdlib/types/link_preview_options.rb', line 13

def force_large_media
  @force_large_media
end

#force_small_mediaBoolean

True, if shown media preview must be small; ignored in secret chats or if the URL isn’t explicitly specified.

Returns:

  • (Boolean)

    the current value of force_small_media



13
14
15
# File 'lib/tdlib/types/link_preview_options.rb', line 13

def force_small_media
  @force_small_media
end

#is_disabledBoolean

True, if link preview must be disabled.

Returns:

  • (Boolean)

    the current value of is_disabled



13
14
15
# File 'lib/tdlib/types/link_preview_options.rb', line 13

def is_disabled
  @is_disabled
end

#show_above_textBoolean

True, if link preview must be shown above message text; otherwise, the link preview will be shown below the message text; ignored in secret chats.

Returns:

  • (Boolean)

    the current value of show_above_text



13
14
15
# File 'lib/tdlib/types/link_preview_options.rb', line 13

def show_above_text
  @show_above_text
end

#urlTD::Types::String

URL to use for link preview. If empty, then the first URL found in the message text will be used.

Returns:

  • (TD::Types::String)

    the current value of url



13
14
15
# File 'lib/tdlib/types/link_preview_options.rb', line 13

def url
  @url
end