Got rid with strict username existance check.

Now users w/o username should handled OK.
This commit is contained in:
AB
2018-09-14 00:00:31 +03:00
parent d71da08eff
commit 2b0b563a16
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ code.png
*.swp
*.swo
*.allah
.vscode/settings.json

View File

@ -170,7 +170,10 @@ class MessageWorker:
return False
try:
text = msg['message']['text']
username = msg['message']['from']['username']
try:
username = msg['message']['from']['username']
except:
username = "_null"
try:
last_name = msg['message']['from']['last_name']
except: