diff --git a/delojza.py b/delojza.py index 07f7910..e4cab82 100755 --- a/delojza.py +++ b/delojza.py @@ -240,9 +240,9 @@ class DelojzaBot: def get_hashtags(self, message): hashtags = self.extract_hashtags(message) if len(hashtags) == 0 and self.last_hashtags is not None: - user, chat, ts, hashtags = self.last_hashtags + user, chat, ts, last_hashtags = self.last_hashtags if user == message.from_user and chat == message.chat and ts > datetime.now() - timedelta(hours=1): - hashtags = self.last_hashtags[1] + hashtags = last_hashtags return hashtags def tg_handle_hashtag(self, bot, update):