Class: Telegram::Bot::Types::LinkPreviewOptions

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/link_preview_options.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#is_disabledBoolean? (readonly)

Returns the value of attribute is_disabled.

Returns:

  • (Boolean, nil)


8
9
10
# File 'sig/telegram/bot/types/link_preview_options.rbs', line 8

def is_disabled
  @is_disabled
end

#prefer_large_mediaBoolean? (readonly)

Returns the value of attribute prefer_large_media.

Returns:

  • (Boolean, nil)


11
12
13
# File 'sig/telegram/bot/types/link_preview_options.rbs', line 11

def prefer_large_media
  @prefer_large_media
end

#prefer_small_mediaBoolean? (readonly)

Returns the value of attribute prefer_small_media.

Returns:

  • (Boolean, nil)


10
11
12
# File 'sig/telegram/bot/types/link_preview_options.rbs', line 10

def prefer_small_media
  @prefer_small_media
end

#show_above_textBoolean? (readonly)

Returns the value of attribute show_above_text.

Returns:

  • (Boolean, nil)


12
13
14
# File 'sig/telegram/bot/types/link_preview_options.rbs', line 12

def show_above_text
  @show_above_text
end

#urlString? (readonly)

Returns the value of attribute url.

Returns:

  • (String, nil)


9
10
11
# File 'sig/telegram/bot/types/link_preview_options.rbs', line 9

def url
  @url
end

Class Method Details

.new(is_disabled:, url:, prefer_small_media:, prefer_large_media:, show_above_text:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(is_disabled:, url:, prefer_small_media:, prefer_large_media:, show_above_text:) ⇒ instance

    Parameters:

    • is_disabled: (Boolean)
    • url: (String)
    • prefer_small_media: (Boolean)
    • prefer_large_media: (Boolean)
    • show_above_text: (Boolean)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/link_preview_options.rbs', line 6

def self.new: (?is_disabled: bool, ?url: String, ?prefer_small_media: bool, ?prefer_large_media: bool, ?show_above_text: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance