mirror of
https://github.com/Redume/Shirino.git
synced 2024-11-24 09:16:22 +03:00
юзер френдли ошибка
This commit is contained in:
parent
bc9098cd14
commit
88b7fc6063
1 changed files with 5 additions and 3 deletions
8
main.py
8
main.py
|
@ -222,7 +222,7 @@ async def currency(inline_query: types.InlineQuery) -> None:
|
||||||
)
|
)
|
||||||
|
|
||||||
except aiohttp.client_exceptions.ClientError as ex:
|
except aiohttp.client_exceptions.ClientError as ex:
|
||||||
await inline_reply(result,
|
await inline_reply(result_id,
|
||||||
"Rate-limit от API Telegram, повторите запрос позже",
|
"Rate-limit от API Telegram, повторите запрос позже",
|
||||||
None,
|
None,
|
||||||
inline_query)
|
inline_query)
|
||||||
|
@ -232,9 +232,11 @@ async def currency(inline_query: types.InlineQuery) -> None:
|
||||||
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
log.debug(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:
|
async def main() -> None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue