Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
环境:
Python 3.9 requests == 2.30.0 urllib == 1.26.15 miria-core-all == 2.15.0-M1 mirai-api-http == 2.9.1.mirai2
先看原代码
这是运行完的结果:
运行结果里: 以前未注销的session获取正常 新获取的session获取不到data数值
在此之间没有进行消息队列的清空,也尝试在不同的Python版本和库中尝试,问题一直哪有解决QAQ
新获取的session没有缓存,收到的消息应该是缓存到对应的session,你可以试试使用漫游接口调取没有缓存到的消息