Class: Telegram::Bot::Types::ReplyParameters

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

#allow_sending_without_replyBoolean? (readonly)

Returns the value of attribute allow_sending_without_reply.

Returns:

  • (Boolean, nil)


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

def allow_sending_without_reply
  @allow_sending_without_reply
end

#chat_idInteger, ... (readonly)

Returns the value of attribute chat_id.

Returns:

  • (Integer, String, nil)


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

def chat_id
  @chat_id
end

#checklist_task_idInteger? (readonly)

Returns the value of attribute checklist_task_id.

Returns:

  • (Integer, nil)


15
16
17
# File 'sig/telegram/bot/types/reply_parameters.rbs', line 15

def checklist_task_id
  @checklist_task_id
end

#message_idInteger (readonly)

Returns the value of attribute message_id.

Returns:

  • (Integer)


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

def message_id
  @message_id
end

#poll_option_idString? (readonly)

Returns the value of attribute poll_option_id.

Returns:

  • (String, nil)


16
17
18
# File 'sig/telegram/bot/types/reply_parameters.rbs', line 16

def poll_option_id
  @poll_option_id
end

#quoteString? (readonly)

Returns the value of attribute quote.

Returns:

  • (String, nil)


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

def quote
  @quote
end

#quote_entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute quote_entities.

Returns:



13
14
15
# File 'sig/telegram/bot/types/reply_parameters.rbs', line 13

def quote_entities
  @quote_entities
end

#quote_parse_modeString? (readonly)

Returns the value of attribute quote_parse_mode.

Returns:

  • (String, nil)


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

def quote_parse_mode
  @quote_parse_mode
end

#quote_positionInteger? (readonly)

Returns the value of attribute quote_position.

Returns:

  • (Integer, nil)


14
15
16
# File 'sig/telegram/bot/types/reply_parameters.rbs', line 14

def quote_position
  @quote_position
end

Class Method Details

.new(message_id:, chat_id:, allow_sending_without_reply:, quote:, quote_parse_mode:, quote_entities:, quote_position:, checklist_task_id:, poll_option_id:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(message_id:, chat_id:, allow_sending_without_reply:, quote:, quote_parse_mode:, quote_entities:, quote_position:, checklist_task_id:, poll_option_id:) ⇒ instance

    Parameters:

    • message_id: (Integer)
    • chat_id: (Integer, String)
    • allow_sending_without_reply: (Boolean)
    • quote: (String)
    • quote_parse_mode: (String)
    • quote_entities: (Array[MessageEntity])
    • quote_position: (Integer)
    • checklist_task_id: (Integer)
    • poll_option_id: (String)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (message_id: Integer, ?chat_id: (Integer | String), ?allow_sending_without_reply: bool, ?quote: String, ?quote_parse_mode: String, ?quote_entities: Array[MessageEntity], ?quote_position: Integer, ?checklist_task_id: Integer, ?poll_option_id: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance