From 69434b9919b42e6d70d6cb013cc182347adf5c3e Mon Sep 17 00:00:00 2001 From: iwatkot Date: Wed, 24 Jan 2024 14:17:41 +0300 Subject: [PATCH] Markdown parse for buttons. --- src/bot.py | 2 ++ src/bot_templates.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bot.py b/src/bot.py index af55408..4c58d9c 100644 --- a/src/bot.py +++ b/src/bot.py @@ -100,6 +100,7 @@ async def button_github(message: types.Message) -> None: Messages.GITHUB.value, reply_markup=await keyboard(Buttons.MAIN_MENU.value), disable_web_page_preview=True, + parse_mode=types.ParseMode.MARKDOWN_V2, ) @@ -117,6 +118,7 @@ async def button_coffee(message: types.Message) -> None: Messages.COFFEE.value, reply_markup=await keyboard(Buttons.MAIN_MENU.value), disable_web_page_preview=True, + parse_mode=types.ParseMode.MARKDOWN_V2, ) diff --git a/src/bot_templates.py b/src/bot_templates.py index a48e2ce..4868cae 100644 --- a/src/bot_templates.py +++ b/src/bot_templates.py @@ -9,10 +9,10 @@ class Messages(Enum): "To get started, use the menu below." ) GITHUB = ( - "Feel free to contribute to the [project on GitHub](https://github.com/iwatkot/maps4fs)." + "Feel free to contribute to the [project on GitHub](https://github.com/iwatkot/maps4fs)\." ) COFFEE = ( - "If you like my work, you can [buy me a coffee](https://www.buymeacoffee.com/iwatkot0)." + "If you like my work, you can [buy me a coffee](https://www.buymeacoffee.com/iwatkot0)\." ) CANCELLED = "The operation has been cancelled."