Merge pull request #3 from xelnagamex/feature

fix
This commit is contained in:
House of vanity
2018-03-05 14:03:42 +03:00
committed by GitHub

View File

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