Ankit404butfound / PyWhatKit

Send WhatsApp message at certain time and many other things.
MIT License
1.33k stars 294 forks source link

whatsapp multiple tabs in send messages #262

Open Rasantis opened 1 year ago

Rasantis commented 1 year ago

I created a bot that sends messages to various numbers in whatsap, it works. The problem is that with each contact he will send the message, he opens a new tab on whatsapp... would like to send to contacts only in a tab.

FrancoisSUPRIN commented 1 year ago

pw.sendwhatmsg_to_group(group_id, message, hour_s, min_s, tab_close=True, close_time=5) did you set the 'tab_close' and 'close_time' parameters ? as soon as the time is up, it will close the window

Vashesh08 commented 1 year ago

Try this if you want to send to saved contacts, and saving the time of reopening and closing tabs https://github.com/Vashesh08/PyWp