mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
11 lines
341 B
Python
11 lines
341 B
Python
class ValidationError(Exception):
|
|
pass
|
|
|
|
|
|
class TelegramAPIError(Exception):
|
|
def __init__(self, message, method, status, body):
|
|
super(TelegramAPIError, self).__init__(
|
|
f"A request to the Telegram API was unsuccessful.\n{message}")
|
|
self.method = method
|
|
self.status = status
|
|
self.body = body
|