tomer8007 / kik-bot-api-unofficial

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

Adding people to a group #165

Closed Madrid-Lux closed 3 years ago

Madrid-Lux commented 3 years ago

Is there any way to add people into a group, knowing they're in the friends list? I have looked at the code & didn't really see it mentioned anywhere.

bluemods commented 3 years ago

<iq type="set" id="[Crypto UUID]"> <query xmlns="kik:groups:admin"> <g jid="[Group JID]"> <m>[USER_JID]@talk.kik.com</m> </g> </query> </iq>

Madrid-Lux commented 3 years ago

How is that used? Is there a function, & what's Crypto UUID?

tomer8007 commented 3 years ago

You're looking for add_peer_to_group:

client.add_peer_to_group(group_jid, peer_jid)
Madrid-Lux commented 3 years ago

Exactly what I was looking for; thank you so much!