Send message on whatsapp on whatsapp web using html or javascript

前端 未结 2 1340
旧时难觅i
旧时难觅i 2021-01-20 05:02

I want to send message through whatsapp web.

I am using following code but its not working.. https://wa.me/?text=urlencodedtext

I am unable to see contact l

相关标签:
2条回答
  • 2021-01-20 05:38

    Try changing the domain from wa.me to api.whatsapp.com, like this...

    https://api.whatsapp.com/send?text=text
    

    Then you can have it send whatever text you'd like. You also have the option to specify a phone number...

    https://api.whatsapp.com/send?text=text&phone=1234
    

    Unfortunately, it seems that wa.me currently only works when you specify BOTH a phone number AND a message, like so:

    https://wa.me/12345?text=urlencodedtext
    

    If you don't know the phone number, or don't like that parameter, please use the api.whatsapp.com format.

    October, 2020 Update: wa.me was partially fixed. However, unlike api.whatsapp.com, it will not show an image preview of the site's og:image tags. So, keep using api.whatsapp.com as suggested above.

    0 讨论(0)
  • 2021-01-20 06:05

    Received From WhatsApp Support: We are aware of the issue and we are working on fixing it in a future update of WhatsApp. Unfortunately, we can't comment on any future release dates at this time

    See: stackoverflow

    EDIT: Started working again

    0 讨论(0)
提交回复
热议问题