fix last_hashtag bug
This commit is contained in:
parent
0e4ba13166
commit
2f658ed9ab
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue