zzstarfish
zzstarfish
### Reporting an Issue or Missing Feature Connect-PnPOnline with Url ClientID ClientSecret (Client ID and Client Secrent are from Graph )then Get-PnPList returns error '(403) Forbidden', but **if I run...
微信版本:3.9.11.19 代码就是类似简单机器人中的监听某个群的消息,打印出来。有的时候运行正常,拿到的信息就是群里新出现的消息。有的时候拿到的信息,一上来会出现昨天和前天发的消息。具体测试发现(测过好几次,测试结果可重复):如果在程序启动之前,手动打开了监听的群的聊天窗口,那么拿到的消息就是新出现的消息(运行正确)。如果程序启动之前,监听的群的聊天窗口没有打开,而是程序运行时通过程序自己打开的,那么拿到的消息就是包括昨天和前天发送的消息。 代码和打印出来的信息如下。 具体的代码: ``` listen_list = [ '我有一个家' ] for i in listen_list: wx.AddListenChat(who=i) wait = 15 while True: msgs = wx.GetListenMessage() for chat in msgs: one_msgs = msgs.get(chat)...