From 78ef3bb43091a449589b11ec4bc702c63345918b Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sat, 9 Jul 2022 00:51:06 +0000 Subject: [PATCH] bug fix in telegram.py --- telegram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telegram.py b/telegram.py index 74ef36a..6ed57d2 100644 --- a/telegram.py +++ b/telegram.py @@ -31,7 +31,7 @@ class CommandProcessor: self.bot.infinity_polling() - def __command_help(self, message: Message): + def __command_help(self, message: Message, data: dict): self.bot.reply_to( message, 'Supported commands:\n' @@ -59,7 +59,7 @@ class CommandProcessor: feed_list = '' for index, feed in enumerate(feeds, start=1): - feed_list += '* ' + str(index) + ': ' + f'''{feed['title']}''' + '\n' + feed_list += str(index) + ': ' + f"{feed['url']}" + '\n' self.bot.reply_to(message, 'Your feeds:\n' + feed_list) @@ -132,7 +132,7 @@ class Notifier: return ( f"{item.title}\n\n" f"{item.date}\n" - f"{item.description}" + # f"{item.description}" )