Reputation: 69
I try to send url via php script with WhatsApp Api, I used the blog: http://blog.philippheckel.com/2013/07/07/send-whatsapp-messages-via-php-script-using-whatsapi/
I could send plain text to any number using the API call. for example script(in PHP) is:
$w = new WhatsProt($userPhone, $userIdentity, $userName, $debug);
$w->Connect();
$w->LoginWithPassword($password);
$w->sendMessage('919876543210', "test message");
But if I tried sending url type message like
$w->sendMessage('919876543210', "http://www.google.com");
It gets received as plain text, not hyperlink. I tried all options like giving html tags along with text but failed.
Upvotes: 3
Views: 5602
Reputation: 420
my friend, dont do that .
I think you Will be banned .
If not, already got .
Upvotes: 0
Reputation: 912
In WhatsApp, Hyperlinks will be received as text if the Sender Number is not already in contact list of receiver.
However, as soon as the receive adds the sender as their contact, the hyperlink will be clickable.
Upvotes: 3