feat(telegram_bot): added api client for adnova

This commit is contained in:
ITQ
2025-02-19 14:36:13 +03:00
parent 8ac97edaf6
commit 78ff12fddd
4 changed files with 276 additions and 0 deletions
@@ -0,0 +1,23 @@
from typing import Any
class HTTPError(Exception):
pass
class BadRequestError(HTTPError):
def __init__(self, detail: Any) -> None:
super().__init__(f"Bad Request: {detail}")
self.detail = detail
class ForbiddenError(HTTPError):
def __init__(self, detail: str = "Forbidden") -> None:
super().__init__(f"Forbidden: {detail}")
self.detail = detail
class NotFoundError(HTTPError):
def __init__(self, detail: str = "Not Found") -> None:
super().__init__(f"Not Found: {detail}")
self.detail = detail