wechaty / wechaty-puppet-padplus

DEPRECATED: One puppet based on iPad protocal for Wechaty
https://wechaty.js.org/docs/puppet-services/
317 stars 65 forks source link

Offline auto detection #319

Open suntong opened 3 years ago

suntong commented 3 years ago

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is.

Re-post from #177

We can found that "uin":289099750,"online":true, but when we send the next request for GET_CONTACT_SELF_INFO the grpc has no response for it, maybe the server think the bot is offline.

So I guess there some bugs about sync login data in base server.

Describe the solution you'd like

It is better to be able to detect such situation, and trigger a logout action, so as forcing the user to scan QR code to login again.

Describe alternatives you've considered

Manually remove the .memory-card.json, and then restart the bot again would work, but that's less ideal.

Additional context

It seems to be a re-occurring problem

[enhancement]