From 4501018078eb8de2e7bf3f37fba58b3305d54173 Mon Sep 17 00:00:00 2001 From: kiriharu Date: Mon, 11 Jan 2021 12:07:15 +0300 Subject: [PATCH] markdown parse mode for ipcalc help messages, hotfix --- apps/tgbot/tgbot/handlers/default/ipcalc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/tgbot/tgbot/handlers/default/ipcalc.py b/apps/tgbot/tgbot/handlers/default/ipcalc.py index 8b02503..033ba4e 100644 --- a/apps/tgbot/tgbot/handlers/default/ipcalc.py +++ b/apps/tgbot/tgbot/handlers/default/ipcalc.py @@ -27,9 +27,9 @@ class IPCalcCommandHandler(SimpleCommandHandler): args = await self.process_args(message.text) network = ipaddress.ip_network(args[1], False) except NotEnoughArgs: - await message.answer(self.help_message) + await message.answer(self.help_message, parse_mode='Markdown') except ValueError: - await message.answer(self.help_message) + await message.answer(self.help_message, parse_mode='Markdown') else: msg = await self.prepare_message(network) await message.answer(msg)