just want to know student_id
This commit is contained in:
6
bot.py
6
bot.py
@ -33,6 +33,12 @@ def on_chat(msg):
|
|||||||
else:
|
else:
|
||||||
users[str(from_id)] = user
|
users[str(from_id)] = user
|
||||||
|
|
||||||
|
# just want to know
|
||||||
|
try:
|
||||||
|
print('student_id:', user._username)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if content_type == 'text':
|
if content_type == 'text':
|
||||||
# pre-treat the command
|
# pre-treat the command
|
||||||
command = [msg['text']]
|
command = [msg['text']]
|
||||||
|
Reference in New Issue
Block a user