Class: Telegram::Bot::Types::ResponseParameters

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

#migrate_to_chat_idInteger? (readonly)

Returns the value of attribute migrate_to_chat_id.

Returns:

  • (Integer, nil)


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

def migrate_to_chat_id
  @migrate_to_chat_id
end

#retry_afterInteger? (readonly)

Returns the value of attribute retry_after.

Returns:

  • (Integer, nil)


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

def retry_after
  @retry_after
end

Class Method Details

.new(migrate_to_chat_id:, retry_after:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(migrate_to_chat_id:, retry_after:) ⇒ instance

    Parameters:

    • migrate_to_chat_id: (Integer)
    • retry_after: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?migrate_to_chat_id: Integer, ?retry_after: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance