Class: Telegram::Bot::Types::InputPollOption

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/input_poll_option.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

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


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

def text
  @text
end

#text_entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute text_entities.

Returns:



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

def text_entities
  @text_entities
end

#text_parse_modeString? (readonly)

Returns the value of attribute text_parse_mode.

Returns:

  • (String, nil)


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

def text_parse_mode
  @text_parse_mode
end

Class Method Details

.new(text:, text_parse_mode:, text_entities:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(text:, text_parse_mode:, text_entities:) ⇒ instance

    Parameters:

    • text: (String)
    • text_parse_mode: (String)
    • text_entities: (Array[MessageEntity])

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (text: String, ?text_parse_mode: String, ?text_entities: Array[MessageEntity]) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance