$targets = array("34123456789", "34987654321");
$message = "This is broadcast message";
$w->sendBroadcastMessage($targets, $message);
Interface to WhatsApp Messenger
> END OF SUPPORT <
NO ONE is interested in this.Can Klopp replace Loew?
Hi guys,
Sending Broadcast Message:
B4X:$targets = array("34123456789", "34987654321"); $message = "This is broadcast message"; $w->sendBroadcastMessage($targets, $message);
https://github.com/mgp25/Chat-API/wiki/WhatsAPI-Documentation
Please can some kind soul port this to B4A?
Reward is USD 50 - if it works
THANK YOU
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
You're wrong is simple enough.Das ist gut. I try it. Seems complicated - so might need a few days
Can Klopp replace Loew?
It works partially. There is a library of @MarcoRome that uses this system (see here), but user intervention is still required.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.
B4X: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
You're wrong is simple enough.
I made a BOT, I read the messages of WhatsApp with NotifierListen and automatically reply with AccessService .....
Everything is if you are really interested in making it ....
Thank you Dani
With your solution can AUTOMATE selection of users to Broadcast to? Non-manual selection - but with their ContactName or PhoneNumber
Maybe it WAS in 2015. In 2019 it is not. There is no public Api from Whatsapp which allows this.It is possible to send broadcast message
Thanks for the update, didn't even checked the last date for commitMaybe it WAS in 2015. In 2019 it is not. There is no public Api from Whatsapp which allows this.
As per the ChatAPI you attached on Post#1, It is possible to send broadcast message. but make sure not to use it for spamming. They clearly mentioned it on terms and condition section. What required for this will be having a custom API hosted somewhere having ChatAPI and your B4X app can talk to it to send the messages.
Maybe it WAS in 2015. In 2019 it is not. There is no public Api from Whatsapp which allows this.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?