commands fixes
This commit is contained in:
@@ -9,6 +9,9 @@ def handle_command_ask(msg):
|
||||
r = get_member(chat_id, member_id)
|
||||
print(r)
|
||||
m = {}
|
||||
m['from'] = r['result']['user']
|
||||
m['chat'] = { 'id': chat_id }
|
||||
show_request_msg(m)
|
||||
if 'result' in r:
|
||||
m['from'] = r['result']['user']
|
||||
m['chat'] = { 'id': str(chat_id) }
|
||||
show_request_msg(m)
|
||||
elif 'error_code' in r:
|
||||
print(r)
|
Reference in New Issue
Block a user