Hi
@Rockefeller Goldman as of my understanding, from B4A you can send a broadcast message via intents to WhatsApp with the following code. But WhatsApp will force you to choose for list of contacts. (You may check the following code snippet below). If you need to send broadcast message through another API that can talk to whatsApp on behalf of your B4A app, that is different and I believe in your case automating such thing is possible with such option. I may help you to build custom API with Sample B4A App.
Sub Activity_Create(FirstTime As Boolean)
Dim message As String = "This is broadcast message"
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_SEND ,"")
Intent1.SetType("text/plain")
Intent1.SetComponent("com.whatsapp/.ContactPicker")
Intent1.PutExtra("android.intent.extra.TEXT", message)
StartActivity(Intent1)
' Whatsapp: intent.setPackage("com.whatsapp");
' Linkedin: intent.setPackage("com.linkedin.android");
' Twitter: intent.setPackage("com.twitter.android");
' Facebook: intent.setPackage("com.facebook.katana");
' GooglePlus: intent.setPackage("com.google.android.apps.plus");
End Sub
It works partially. There is a library of
@MarcoRome that uses this system (see
here), but user intervention is still required.
If you set up a standard message (by code), you need to select the users one by one.
If you set the user (by code), you can not set a standard message .. he opens an panel to confirm the message.
On the forum you can find everything and on the official website of WhastApp there is a documentation (not complete) of some APIs