Closed kopf closed 3 years ago
You can contribute this functionality by subclassing XMPPElement
, and placing the XML in the serialise
function.
Then under KikClient
there should be a new method that creates and sends an instance of this class. Just look at how other similar methods are implemented.
I hope this helps.
It does, thanks @tomer8007 ! I'll have a look.
I will try and work on a PR for this
IMPORTANT NOTE:
Currently there are exploits that can clog the message history, meaning there are ways to spoof who the message is coming from. If this is done, old history messages become unack-able.
Considering how Kik requires you to send message acks that require who the message came from and what message id the message was under to continue pulling more messages in your history queue, it is possible to clog this up as the sender is unknown, which means that you can get stuck with the history and it becomes useless for accounts that have been exploited, as Kik will just send the last batch over and over and you cannot ack the batch.
Only use this if you need to, but dont rely on it to try and "catch up" if your bot is offline or misses messages somehow. At least until the exploit is fixed.
Awesome, thank you @bluemods ! I'd only begun looking at the source properly last night, so.. Be my guest!
What is the status of this?
The way the API is designed, it would require a major rewrite to get it to work properly
You can contribute this functionality by subclassing
XMPPElement
, and placing the XML in theserialise
function.Then under
KikClient
there should be a new method that creates and sends an instance of this class. Just look at how other similar methods are implemented.I hope this helps.
I will try and work on a PR for this
IMPORTANT NOTE:
Currently there are exploits that can clog the message history, meaning there are ways to spoof who the message is coming from. If this is done, old history messages become unack-able.
Considering how Kik requires you to send message acks that require who the message came from and what message id the message was under to continue pulling more messages in your history queue, it is possible to clog this up as the sender is unknown, which means that you can get stuck with the history and it becomes useless for accounts that have been exploited, as Kik will just send the last batch over and over and you cannot ack the batch.
Only use this if you need to, but dont rely on it to try and "catch up" if your bot is offline or misses messages somehow. At least until the exploit is fixed.
I see this is already implemented, client.py have history request api and in the bot send_acks.py it has a response. If we just properly ack as in send_ack py there will be no issue right?
It should work since #200.
As far as I'm aware, there's no functionality in the new client for fetching history. Is this correct, or am I overlooking something? If it's missing, is it planned?
I see here there is some information on the message formats for this action. I could contribute, but I'm not sure where this functionality should be placed or how it should look.