fix last_hashtag bug

This commit is contained in:
Tomáš Mládek 2019-05-01 10:53:48 +02:00
parent 373d7d5c45
commit f7976dfeb4

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):