Added detection of API Errors and fixed coverage

This commit is contained in:
Alex Root Junior 2021-08-01 00:34:50 +03:00
parent 4f2cc75951
commit c3844bb18f
17 changed files with 179 additions and 216 deletions

View file

@ -53,7 +53,7 @@ class MockedBot(Bot):
ok: bool,
result: TelegramType = None,
description: Optional[str] = None,
error_code: Optional[int] = None,
error_code: int = 200,
migrate_to_chat_id: Optional[int] = None,
retry_after: Optional[int] = None,
) -> Response[TelegramType]: