open-wa / wa-automate-python

💬 🤖 The most advanced Python whatsapp library for chatbots with advanced features. Be sure to ⭐ this repository for updates!
Other
330 stars 71 forks source link

Create group is not working #5

Closed manojsitapara closed 4 years ago

manojsitapara commented 4 years ago

I am using following code to create new whatsapp group but it seems not working, it gives timeout error, anyone can help?

driver.create_group('Test15',{'id': "XXXXX@c.us"})

I have tried to solve as suggested in following link, but still no luck

https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/749

UPDATE:

It seems working after modifying following code

window.WAPI.createGroup = async function (name, contactsId) { if (!Array.isArray(contactsId)) { contactsId = [contactsId]; } return await window.Store.Wap.createGroup(name, 0, 0, contactsId); };

but it never return any value, it keep processing and getting following error

Error in function createGroup (Timed out after 60000 ms). Command: return WAPI.createGroup('Test15',{'id': 'xxxxxx@c.us'}, arguments[0])

Can you please help me to fix issue?

mrodal commented 4 years ago

Thanks for reporting Its fixed now, please download the latest version

manojsitapara commented 4 years ago

In case if someone need help. here is example to creategroup

contacts = ["xxxxxxx@c.us"] status = driver.create_group('Test17',contacts)

Meet2308 commented 4 years ago

In case if someone need help. here is example to creategroup

contacts = ["12058528526@c.us"] status = driver.create_group('Test17',contacts)

i do the same thing but get still get error: webwhatsapi.wapi_js_wrapper.JsException: Error in function createGroup (javascript error: Cannot read property 'map' of undefined (Session info: headless chrome=80.0.3987.116)). Command: return WAPI.createGroup('testing',['919408836525@c.us'], arguments[0])