tomer8007 / kik-bot-api-unofficial

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

Is it possible to resolve an ajid? #190

Closed Sitiaro closed 3 years ago

Sitiaro commented 3 years ago

I've been trying to add a feature to grab the username of the person joining a chat but all I'm able to grab is the ajid. Is there a way to resolve ajid's that can help me with this? Or maybe some other method?

tomer8007 commented 3 years ago

What's an ajid? You can grab the username of a jid, not sure if you already know that or if it helps

tomer8007 commented 3 years ago

You can try to use the request_info_of_users function with your jid or ajid: https://github.com/tomer8007/kik-bot-api-unofficial/blob/d64551195c5afb5b03c854a5e7f84a77c98fe06c/kik_unofficial/client.py#L234

In case that won't work, it's probably also worth trying to replace jid= with ajid= in this line: https://github.com/tomer8007/kik-bot-api-unofficial/blob/d64551195c5afb5b03c854a5e7f84a77c98fe06c/kik_unofficial/datatypes/xmpp/roster.py#L70