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.



58
59
60
# File 'lib/telegrammer.rb', line 58

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