Compare commits
No commits in common. "3bffd32df08ad5670275f8b82af8f0cf44c34510" and "af73458e29649fd3e766734ad5fc324eaf5a3eab" have entirely different histories.
3bffd32df0
...
af73458e29
|
@ -33,7 +33,7 @@ class CommandProcessor:
|
|||
self.bot.reply_to(
|
||||
message,
|
||||
'Supported commands:\n'
|
||||
' /add <feed url> - Add new feed\n'
|
||||
' /add <feed url> - Add new feed\n '
|
||||
' /list - List currently added feeds\n'
|
||||
' /del <feed url> - Remove feed\n'
|
||||
' /help - Get this help message'
|
||||
|
@ -100,13 +100,13 @@ class Notifier:
|
|||
self.bot.send_message(
|
||||
chat_id=telegram_id,
|
||||
text=self.__format_message(update),
|
||||
parse_mode='HTML'
|
||||
parse_mode='MarkdownV2'
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def __format_message(item: FeedItem) -> str:
|
||||
return (
|
||||
f"<strong><a href=\"{item.url}\">{item.title}</a></strong>\n\n"
|
||||
f"**[{item.title}]({item.url})**\n\n"
|
||||
f"{item.description}"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue