mirror of
https://github.com/Redume/Shirino.git
synced 2024-11-06 00:33:59 +03:00
теперь в тайтл инлайна пишется ответ апи
This commit is contained in:
parent
8c6dc13ceb
commit
9e7a85d6ab
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -56,13 +56,13 @@ async def currency(query: types.InlineQuery):
|
||||||
except Exception:
|
except Exception:
|
||||||
return
|
return
|
||||||
|
|
||||||
result = f"{res['from-amount']} {res['from-currency-symbol']} = {res['converted-amount']} {res['to-currency-symbol']}"
|
result = str(f"{res['from-amount']} {res['from-currency-symbol']} = {res['converted-amount']} {res['to-currency-symbol']}")
|
||||||
|
|
||||||
article = [types.InlineQueryResultArticle(
|
article = [types.InlineQueryResultArticle(
|
||||||
id=result_id,
|
id=result_id,
|
||||||
title="The rate of a certain currency",
|
title=result,
|
||||||
input_message_content=types.InputTextMessageContent(
|
input_message_content=types.InputTextMessageContent(
|
||||||
message_text=str(result)
|
message_text=result
|
||||||
))]
|
))]
|
||||||
|
|
||||||
await query.answer(article, cache_time=1, is_personal=True)
|
await query.answer(article, cache_time=1, is_personal=True)
|
||||||
|
|
Loading…
Reference in a new issue