Tithibots / tithiwa

Automate Web WhatsApp with selenium in python.
MIT License
24 stars 22 forks source link

Create exit_from_groups() in Group class #43

Closed NavpreetDevpuri closed 3 years ago

NavpreetDevpuri commented 3 years ago

similar to https://github.com/Tithibots/tithiwa/issues/35 exit_from_groups(groups)

Vipul-Bajaj commented 3 years ago

I would like to work on this

NavpreetDevpuri commented 3 years ago

if you can do that. You need to go through all groups and exit only from given groups

And https://github.com/Tithibots/tithiwa/issues/35 is for exiting all groups I suggest first do that then just put some condition into it to make exit_from_groups(groups) just like I did in make_group_admins() here it's almost the same as this which is going through all members.

Vipul-Bajaj commented 3 years ago

I don't think it is that straightforward because we have to look at all the chats and identify which is a group and which is not and then implement the logic for exiting from the group. Currently, I am trying to exit from one group and then will try to do exit from multiple groups. Once that is done, one can write a logic to scrape all the groups, and pass to the function I am writing

NavpreetDevpuri commented 3 years ago

I tried, and i found that it's better to just go through all chats and somehow detect which one are groups and select those chats and then we can just exit all groups by just one click because whatsapp have that feature just select multiple groups and press "exit all groups" option.

Vipul-Bajaj commented 3 years ago

As far as I have explored selecting multiple groups is available on the mobile apps and not on the web version.