tomer8007 / kik-bot-api-unofficial

Python API for writing unoffical Kik bots that act like humans
MIT License
126 stars 76 forks source link

Offline messages #205

Closed SunnyWireless closed 1 year ago

SunnyWireless commented 2 years ago

Is there a way to get messages sent whilst the bot is disconnected? The kik app receives offline messages when signed in again.

tomer8007 commented 2 years ago

Did you try retrieving history?

SunnyWireless commented 2 years ago

I mean people who sent a first message, what would show as chat requests in the app.

BaconPeeks commented 2 years ago

I mean people who sent a first message, what would show as chat requests in the app.

Yeah, as tomer said you'd need to request history for these messages to show up when you login again. The api won't request history be default.

tomer8007 commented 2 years ago

You can request history using the request_messaging_history method, this is probably tha API you're looking for: https://github.com/tomer8007/kik-bot-api-unofficial/blob/1cc91cf3c83df247bd41908a7f4461e711744385/kik_unofficial/client.py#L390