mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.02k stars 796 forks source link

How to forward message to group? #1113

Open bsde1234 opened 2 years ago

bsde1234 commented 2 years ago

I am trying to forward a message to whatsapp group. I used code like below,

for i in data:

    try:
        phone_safe = "91xxxxxxxxxx-xx9xxxxxx6" 
        phone_whatsapp = "{}@g.us".format(phone_safe)
        message = (i['text'])
        phone_whatsapp.forwardMessages([message])
    except:
        print("Error while trying to send the file.")

I get output likeError while trying to send the file. I can see that forwardMessages not available in wapi.js. How to make it work?