From 88b7fc6063f2ddd03d81822e1cbfb0b3a83a52aa Mon Sep 17 00:00:00 2001 From: Redume Date: Sun, 31 Dec 2023 14:19:28 +0300 Subject: [PATCH] =?UTF-8?q?=D1=8E=D0=B7=D0=B5=D1=80=20=D1=84=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=B4=D0=BB=D0=B8=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index ceb56be..9412ff2 100644 --- a/main.py +++ b/main.py @@ -222,7 +222,7 @@ async def currency(inline_query: types.InlineQuery) -> None: ) except aiohttp.client_exceptions.ClientError as ex: - await inline_reply(result, + await inline_reply(result_id, "Rate-limit от API Telegram, повторите запрос позже", None, inline_query) @@ -232,9 +232,11 @@ async def currency(inline_query: types.InlineQuery) -> None: except Exception as ex: log.debug(ex) - result = f'{type(ex).__name__}: {ex}' + await inline_reply(result_id, "Неверный формат данных", + "@shirino_bot USD RUB \n@shirino_bot 12 USD RUB", + inline_query) - await inline_reply(result, result, None, inline_query) + await inline_reply(result_id, result, None, inline_query) async def main() -> None: