whalesong
whalesong copied to clipboard
How can i add participants to group?
Hello, how can i add participants to group? I found function add_participants, but don't know how use it. Help please.
@alfred82santa help please:)
Try:
await manager.chats[group_id].metadata.participants.add_participants([user_id, ])
@alfred82santa
i tried remove participants
my code is:
if message.type == MessageTypes.GP2: self.echo('New message: {}'.format(message)) ensure_future(self.admin(message)) async def admin(self,message): await self._driver.chats[message.chat.id].metadata.participants.remove_participants(['********@c.us', ])
and i got this
Traceback (most recent call last): File "bots/newsbot.py", line 110, in admin await self._driver.chats[message.chat.id].metadata.participants.remove_participants(['*********@c.us', ]) whalesong.errors.UnknownError: this.collection.removeParticipants is not a function
maybe whatsapp api has changed... I will review next days
Thanks you