Class: Telegram::Bot::Types::TextQuote

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

#entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute entities.

Returns:



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

def entities
  @entities
end

#is_manualtrue? (readonly)

Returns the value of attribute is_manual.

Returns:

  • (true, nil)


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

def is_manual
  @is_manual
end

#positionInteger (readonly)

Returns the value of attribute position.

Returns:

  • (Integer)


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

def position
  @position
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


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

Overloads:

  • .new(text:, entities:, position:, is_manual:) ⇒ instance

    Parameters:

    • text: (String)
    • entities: (Array[MessageEntity])
    • position: (Integer)
    • is_manual: (true)

    Returns:

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

    Parameters:

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

    Returns:

    • (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