tomer8007 / kik-bot-api-unofficial

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

Is it known why client_legacy.py gets no response from kik #114

Closed ghost closed 4 years ago

ghost commented 5 years ago

I found legacy's code more readable, and after fixing up a few syntax errors and changing the Android id to not get a ban message, it logs in fine. I can receive messages but upon requesting the roster Kik closes the connection. This is also an issue with the C# sidekik API and this always happened with my own C Kik api

Is there anything that was changed between the client and client_legacy that fixed this? Client.py works for me just fine

tomer8007 commented 5 years ago

Yes, I agree the legacy client's code can be more redable - abstraction and modularity often has the cost of complexity.

Unfortunately these unexpected connection-closing problems are usually hard to understand. I also don't quite remember a specific change. Are you able to send messages? Can you mimic the client.py?

ghost commented 5 years ago

To be more specific, the only thing that gets a response is ping, which gets pong

Anything else, from roster request to sending message, info for username, etc: Disconnected (Kik server returns empty response)

I'm going to start a new C api based off the client.py