Skip to content

Commit

Permalink
Markdown parse for buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Jan 24, 2024
1 parent 1de2685 commit 69434b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand All @@ -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,
)


Expand Down
4 changes: 2 additions & 2 deletions src/bot_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 69434b9

Please sign in to comment.