fix last_hashtag bug

This commit is contained in:
Tomáš Mládek 2019-05-01 10:53:48 +02:00 committed by Tomáš Mládek
parent 0e4ba13166
commit 2f658ed9ab

View file

@ -148,6 +148,7 @@ class DelojzaBot:
if hashtag is None: if hashtag is None:
if self.last_hashtag is not None and self.last_hashtag[0] == message.from_user: if self.last_hashtag is not None and self.last_hashtag[0] == message.from_user:
hashtag = self.last_hashtag[1] hashtag = self.last_hashtag[1]
self.last_hashtag = None
return hashtag return hashtag
def tg_handle_hashtag(self, bot, update): def tg_handle_hashtag(self, bot, update):