Class: Telegram::Bot::Types::ForceReply

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

#force_replytrue (readonly)

Returns the value of attribute force_reply.

Returns:

  • (true)


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

def force_reply
  @force_reply
end

#input_field_placeholderString? (readonly)

Returns the value of attribute input_field_placeholder.

Returns:

  • (String, nil)


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

def input_field_placeholder
  @input_field_placeholder
end

#selectiveBoolean? (readonly)

Returns the value of attribute selective.

Returns:

  • (Boolean, nil)


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

def selective
  @selective
end

Class Method Details

.new(force_reply:, input_field_placeholder:, selective:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(force_reply:, input_field_placeholder:, selective:) ⇒ instance

    Parameters:

    • force_reply: (true)
    • input_field_placeholder: (String)
    • selective: (Boolean)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (force_reply: true, ?input_field_placeholder: String, ?selective: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance