mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-16 12:07:13 +00:00
Refactoring.
This commit is contained in:
parent
62e7bd1cbe
commit
07c7c1f32a
38 changed files with 313 additions and 243 deletions
|
|
@ -5,7 +5,7 @@ class ValidationError(Exception):
|
|||
class TelegramAPIError(Exception):
|
||||
def __init__(self, message, method, status, body):
|
||||
super(TelegramAPIError, self).__init__(
|
||||
f"A request to the Telegram API was unsuccessful (Status code: {status}). {message}")
|
||||
f"A request to the Telegram API was unsuccessful.\n{message}")
|
||||
self.method = method
|
||||
self.status = status
|
||||
self.body = body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue