Exception: Telegrammer::Errors::BadRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/telegrammer.rb

Overview

Error returned when something goes bad with your request to the Telegram API

Instance Method Summary collapse

Constructor Details

#initialize(error_code, message) ⇒ BadRequestError

Returns a new instance of BadRequestError.



50
51
52
# File 'lib/telegrammer.rb', line 50

def initialize(error_code, message)
  super("Bad request. Error code: #{error_code} - Message: #{message}")
end