Class: TD::Types::LinkPreviewOptions
- Defined in:
- lib/tdlib/types/link_preview_options.rb
Overview
Options to be used for generation of a link preview.
Instance Attribute Summary collapse
-
#force_large_media ⇒ Boolean
True, if shown media preview must be large; ignored in secret chats or if the URL isn’t explicitly specified.
-
#force_small_media ⇒ Boolean
True, if shown media preview must be small; ignored in secret chats or if the URL isn’t explicitly specified.
-
#is_disabled ⇒ Boolean
True, if link preview must be disabled.
-
#show_above_text ⇒ Boolean
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.
-
#url ⇒ TD::Types::String
URL to use for link preview.
Method Summary
Methods inherited from Base
Instance Attribute Details
#force_large_media ⇒ Boolean
True, if shown media preview must be large; ignored in secret chats or if the URL isn’t explicitly specified.
13 14 15 |
# File 'lib/tdlib/types/link_preview_options.rb', line 13 def force_large_media @force_large_media end |
#force_small_media ⇒ Boolean
True, if shown media preview must be small; ignored in secret chats or if the URL isn’t explicitly specified.
13 14 15 |
# File 'lib/tdlib/types/link_preview_options.rb', line 13 def force_small_media @force_small_media end |
#is_disabled ⇒ Boolean
True, if link preview must be disabled.
13 14 15 |
# File 'lib/tdlib/types/link_preview_options.rb', line 13 def is_disabled @is_disabled end |
#show_above_text ⇒ Boolean
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.
13 14 15 |
# File 'lib/tdlib/types/link_preview_options.rb', line 13 def show_above_text @show_above_text end |
#url ⇒ TD::Types::String
URL to use for link preview. If empty, then the first URL found in the message text will be used.
13 14 15 |
# File 'lib/tdlib/types/link_preview_options.rb', line 13 def url @url end |