We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d35dc commit 4216157Copy full SHA for 4216157
bot/osmbot_blueprint.py
@@ -82,7 +82,10 @@ def attend_webhook(token):
82
osmbot.set_group(query['message']['chat']['type'] == u'group')
83
if osmbot.get_group():
84
identifier = message_dict['chat']['id']
85
- command = message_dict["text"].split()[0]
+ if "text" in message_dict:
86
+ command = message_dict["text"].split()[0]
87
+ else:
88
+ command = None
89
else:
90
identifier = message_dict['from']['id']
91
if "text" in message_dict:
0 commit comments