From 3bffd32df08ad5670275f8b82af8f0cf44c34510 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 30 May 2022 22:58:50 +0300 Subject: [PATCH] #7 Notifier now sends messages in HTML. --- telegram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram.py b/telegram.py index 13acdd6..38646b7 100644 --- a/telegram.py +++ b/telegram.py @@ -100,13 +100,13 @@ class Notifier: self.bot.send_message( chat_id=telegram_id, text=self.__format_message(update), - parse_mode='MarkdownV2' + parse_mode='HTML' ) @staticmethod def __format_message(item: FeedItem) -> str: return ( - f"**[{item.title}]({item.url})**\n\n" + f"{item.title}\n\n" f"{item.description}" )