From 9e7a85d6abaaec63a4261dc54829f25ca8fe005b Mon Sep 17 00:00:00 2001 From: Redume Date: Fri, 10 Mar 2023 12:49:35 +0300 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B2?= =?UTF-8?q?=20=D1=82=D0=B0=D0=B9=D1=82=D0=BB=20=D0=B8=D0=BD=D0=BB=D0=B0?= =?UTF-8?q?=D0=B9=D0=BD=D0=B0=20=D0=BF=D0=B8=D1=88=D0=B5=D1=82=D1=81=D1=8F?= =?UTF-8?q?=20=D0=BE=D1=82=D0=B2=D0=B5=D1=82=20=D0=B0=D0=BF=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 95c0c01..14dda63 100644 --- a/main.py +++ b/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)