Page 1 of 1

Sending Whatsapp Messages from WD

PostPosted: Thu Dec 22, 2022 3:07 am
by Daniel Kaminski
For some installations it might be helpfull to send whatsapp Messages to your phone.

This can be done using Whatabot API
https://whatabot.net/#howtouse

Just register your phone and recieve an API Key.

create a Macro called "SendWhatsAppMessage" with 1 Parameter "text"

Code: Select all
// Update APIKey and PhoneNo
var apikey = "123456"
var phone = "0000000000"

var msg = "https://api.whatabot.net/whatsapp/sendMessage?apikey="
msg += apikey + "&text="
msg += textmessage
msg += "&phone=" + phone

var response = ""
HTTPRequestToVar(msg,"response","GET","application/json")

Re: Sending Whatsapp Messages from WD

PostPosted: Thu Dec 22, 2022 3:15 am
by Daniel Kaminski
Also works for telegram

Code: Select all
// Update APIKey and ChatID
var apikey = "0000000"
var chatId = "00000000000"

var msg = "https://api.whatabot.net/telegram/sendMessage?apikey="
msg += apikey + "&text="
msg += textmessage
msg += "&chatId=" + chatId

var response = ""
HTTPRequestToVar(msg,"response","GET","application/json")