Class: Telegram::Bot::Types::InputPollOption
- Defined in:
- sig/telegram/bot/types/input_poll_option.rbs
Instance Attribute Summary collapse
-
#text ⇒ String
readonly
Returns the value of attribute text.
-
#text_entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute text_entities.
-
#text_parse_mode ⇒ String?
readonly
Returns the value of attribute text_parse_mode.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#text ⇒ String (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'sig/telegram/bot/types/input_poll_option.rbs', line 8 def text @text end |
#text_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute text_entities.
10 11 12 |
# File 'sig/telegram/bot/types/input_poll_option.rbs', line 10 def text_entities @text_entities end |
#text_parse_mode ⇒ String? (readonly)
Returns the value of attribute text_parse_mode.
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
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
|