mirror of
https://github.com/Redume/Shirino.git
synced 2024-11-22 00:06:22 +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:
|
||||
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(
|
||||
id=result_id,
|
||||
title="The rate of a certain currency",
|
||||
title=result,
|
||||
input_message_content=types.InputTextMessageContent(
|
||||
message_text=str(result)
|
||||
message_text=result
|
||||
))]
|
||||
|
||||
await query.answer(article, cache_time=1, is_personal=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue