Telegram module #10

Merged
skobkin merged 19 commits from feature_telegram into master 2022-05-30 20:54:27 +00:00
Showing only changes of commit 3bffd32df0 - Show all commits

View file

@ -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"<strong><a href=\"{item.url}\">{item.title}</a></strong>\n\n"
f"{item.description}"
)