Revert "here triggers only on first or last words"

This commit is contained in:
House of vanity
2018-03-05 12:28:42 +03:00
committed by GitHub
parent ac8e9a561a
commit 9ea31bf55b

View File

@ -76,8 +76,7 @@ class MessageWorker:
self.send(id=conf_id, msg=msg + ' ```')
return True
first, *middle, last = msg.split()
if first == '@here' or last == '@here':
if msg['message']['text'] == '@here':
conf_id = msg['message']['chat']['id']
user_id = msg['message']['from']['id']
chat_title = msg['message']['chat']['title']