I could not find any APIs that matter to me.
The following code sends a message to WhatApp. Then start WhatsApp and only then the user selects the recipient, only one. Does not use libraries.
Dim i As Intent
i.Initialize(i.ACTION_SEND, "")
i.PutExtra("android.intent.extra.TEXT", "TEST 2 bla bla bla")
i.SetType("text/plain")
Dim jo As JavaObject = i
jo.RunMethod("setPackage", Array("com.whatsapp"))
StartActivity(i)
I would like to send to 5 or 6 contacts a single message, interacting as little as possible with WhatsApp.
Through my app I would create the message and choose (with the various check boxes) the recipients.
That's what I'd like to do.
It will be possible ?