Mobile website “WhatsApp” button to send message to a specific number

Format to send a WhatsApp message to a specific number (updated Nov 2018) <a href=”https://wa.me/whatsappphonenumber/?text=urlencodedtext”></a> where whatsappphonenumber is a full phone number in international format urlencodedtext is the URL-encoded pre-filled message. Example: Create a link with a pre-filled message that will automatically appear in the text field of a chat, to be sent to a … Read more

Get all messages from Whatsapp

Whatsapp store all messages in an encrypted database (pyCrypt) which is very easy to decipher using Python. You can fetch this database easily on Android, iPhone, Blackberry and dump it into html file. Here are complete instructions: Read, Extract WhatsApp Messages backup on Android, iPhone, Blackberry Disclaimer: I researched and wrote this extensive guide.

ffmpeg – whatsapp: video format not supported

There are some options for a better compatibility: ffmpeg -i broken.mp4 -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p working.mp4 With -profile:v baseline -level 3.0 you make the file more compatible with most older players, including WhatsApp ;). Although, this disables some advanced features. -pix_fmt yuv420p is necessary to compile to baseline (YUV planar color … Read more

How to share text to WhatsApp from my app?

You can use intent to do so. No need to use Whatsapp API. Intent whatsappIntent = new Intent(Intent.ACTION_SEND); whatsappIntent.setType(“text/plain”); whatsappIntent.setPackage(“com.whatsapp”); whatsappIntent.putExtra(Intent.EXTRA_TEXT, “The text you wanted to share”); try { activity.startActivity(whatsappIntent); } catch (android.content.ActivityNotFoundException ex) { ToastHelper.MakeShortText(“Whatsapp have not been installed.”); }

Refresh Whatsapp contacts programmatically

It is recommended that you should not interact with other 3rd party apps unless they provide a handle to interact. Which is already given by whatsapp as openurl scheme. In case you have the contact that is removed or added you should address the issue first in your app so it doesn’t/does initiate the action … Read more

Does WhatsApp offer APIs?

WhatsApp is a closed system without an API for general external user access; see Unauthorized use of automated or bulk messaging on WhatsApp for more reading in that regard. They do offer a suite of business APIs for interacting with business accounts and with customers of those businesses programmatically (e.g. for marketing or sales purposes). … Read more

Send text to specific contact programmatically (whatsapp)

I’ve found the right way to do this: Source code: phone and message are both String. PackageManager packageManager = context.getPackageManager(); Intent i = new Intent(Intent.ACTION_VIEW); try { String url = “https://api.whatsapp.com/send?phone=”+ phone +”&text=” + URLEncoder.encode(message, “UTF-8”); i.setPackage(“com.whatsapp”); i.setData(Uri.parse(url)); if (i.resolveActivity(packageManager) != null) { context.startActivity(i); } } catch (Exception e){ e.printStackTrace(); } Enjoy yourself!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)