Skip to content

Commit 6f889b0

Browse files
committed
fix a crash.
1 parent 9628358 commit 6f889b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def handle_msg_all(self, msg):
5959
if not self.robot_switch:
6060
return
6161
if msg['msg_type_id'] == 1 and msg['content']['type'] == 0: # reply to self
62-
self.button(msg)
62+
self.auto_switch(msg)
6363
elif msg['msg_type_id'] == 4 and msg['content']['type'] == 0: # text message from contact
6464
self.send_msg_by_uid(self.tuling_auto_reply(msg['user']['id'], msg['content']['data']), msg['user']['id'])
6565
elif msg['msg_type_id'] == 3: # group message

0 commit comments

Comments
 (0)