MCPcopy
hub / github.com/liuwons/wxBot / handle_msg_all

Method handle_msg_all

wxbot.py:222–233  ·  view source on GitHub ↗

The function to process all WeChat messages, please override this function. msg: msg_id -> id of the received WeChat message msg_type_id -> the type of the message user -> the account that the message if sent from content -> co

(self, msg)

Source from the content-addressed store, hash-verified

220 return False
221
222 def handle_msg_all(self, msg):
223 """
224 The function to process all WeChat messages, please override this function.
225 msg:
226 msg_id -> id of the received WeChat message
227 msg_type_id -> the type of the message
228 user -> the account that the message if sent from
229 content -> content of the message
230 :param msg: The received message.
231 :return: None
232 """
233 pass
234
235 def extract_msg_content(self, msg_type_id, msg):
236 """

Callers 1

handle_msgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected