MCPcopy
hub / github.com/cluic/wxauto / GetAllMessage

Method GetAllMessage

wxauto/wxauto.py:491–504  ·  view source on GitHub ↗

获取当前窗口中加载的所有聊天记录 Args: savepic (bool): 是否自动保存聊天图片 Returns: list: 聊天记录信息

(self, savepic=False, savefile=False, savevoice=False)

Source from the content-addressed store, hash-verified

489 return False
490
491 def GetAllMessage(self, savepic=False, savefile=False, savevoice=False):
492 '''获取当前窗口中加载的所有聊天记录
493
494 Args:
495 savepic (bool): 是否自动保存聊天图片
496
497 Returns:
498 list: 聊天记录信息
499 '''
500 if not self.C_MsgList.Exists(0.2):
501 return []
502 MsgItems = self.C_MsgList.GetChildren()
503 msgs = self._getmsgs(MsgItems, savepic, savefile=savefile, savevoice=savevoice)
504 return msgs
505
506 def LoadMoreMessage(self):
507 """加载当前聊天页面更多聊天信息

Callers 2

__init__Method · 0.95
GetNextNewMessageMethod · 0.95

Calls 3

ExistsMethod · 0.80
_getmsgsMethod · 0.80
GetChildrenMethod · 0.45

Tested by

no test coverage detected