Exception: Telegram::Bot::Exceptions::ResponseError

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/core.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponseError

Returns a new instance of ResponseError.

Parameters:

  • response: (Object)


44
# File 'sig/telegram/bot/core.rbs', line 44

def initialize: (response: untyped) -> void

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.

Returns:

  • (Object)


43
44
45
# File 'sig/telegram/bot/core.rbs', line 43

def response
  @response
end

Instance Method Details

#dataHash[Symbol | String, untyped]

Returns:

  • (Hash[Symbol | String, untyped])


46
# File 'sig/telegram/bot/core.rbs', line 46

def data: () -> Hash[Symbol | String, untyped]

#error_codeInteger?

Returns:

  • (Integer, nil)


45
# File 'sig/telegram/bot/core.rbs', line 45

def error_code: () -> Integer?