fix last_hashtag bug
This commit is contained in:
parent
373d7d5c45
commit
f7976dfeb4
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…
Add table
Reference in a new issue