Class: Telegram::Bot::Types::TextQuote
- Defined in:
- sig/telegram/bot/types/text_quote.rbs
Instance Attribute Summary collapse
-
#entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute entities.
-
#is_manual ⇒ true?
readonly
Returns the value of attribute is_manual.
-
#position ⇒ Integer
readonly
Returns the value of attribute position.
-
#text ⇒ String
readonly
Returns the value of attribute text.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute entities.
9 10 11 |
# File 'sig/telegram/bot/types/text_quote.rbs', line 9 def entities @entities end |
#is_manual ⇒ true? (readonly)
Returns the value of attribute is_manual.
11 12 13 |
# File 'sig/telegram/bot/types/text_quote.rbs', line 11 def is_manual @is_manual end |
#position ⇒ Integer (readonly)
Returns the value of attribute position.
10 11 12 |
# File 'sig/telegram/bot/types/text_quote.rbs', line 10 def position @position end |
#text ⇒ String (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'sig/telegram/bot/types/text_quote.rbs', line 8 def text @text end |
Class Method Details
.new(text:, entities:, position:, is_manual:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/text_quote.rbs', line 6
def self.new: (text: String, ?entities: Array[MessageEntity], position: Integer, ?is_manual: true) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|