Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send message and files to whatsapp using laravel

How can I send WhatsApp message using laravel? Please help me to find out with the environment setup.

wp::send('work.data', ['user' => $seleteced_pic], function ($m)

Should it be this way?

like image 318
Swarnadeep Avatar asked Feb 05 '20 13:02

Swarnadeep


People also ask

How can I send message to WhatsApp in laravel?

Sending From Laravel The best place to start with this application is at http://localhost:8000/messages where you can add your phone number and send yourself a message. Note that the number needs to be in the international (E. 164) format without a leading +.

How can send OTP in WhatsApp in laravel?

To do this, head over to the WhatsApp section in your Twilio dashboard and send the provided text (which is in the format join-{unique text} ) to the WhatsApp number provided. It's usually +1 (415) 523-8886 .


1 Answers

In Laravel there are no build in ability to send messages via WhatsApp.

You will need to integrate with WhatsApp API or use third party serves.

The first google search give me this result. https://www.twilio.com/blog/create-laravel-php-notification-channel-whatsapp-twilio One of the third party serves that simplify iteration with messaging serves.

But you could integrate with WhatsApp directly. https://www.whatsapp.com/business/api

like image 191
112Legion Avatar answered Sep 22 '22 07:09

112Legion