Sending Whatsapp Messages from WD

Christie Widget Designer Version 6 - Q&A

Moderator: Moderator Group

Forum rules
When asking make sure to include the operating system and the revision of Widget Designer you are using.

Sending Whatsapp Messages from WD

Postby Daniel Kaminski » Thu Dec 22, 2022 3:07 am

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")
--
Daniel Kaminski
Pandoras Box Expert
User avatar
Daniel Kaminski
 
Posts: 1071
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany

Re: Sending Whatsapp Messages from WD

Postby Daniel Kaminski » Thu Dec 22, 2022 3:15 am

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")
--
Daniel Kaminski
Pandoras Box Expert
User avatar
Daniel Kaminski
 
Posts: 1071
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany


Return to Widget Designer V6

Who is online

Users browsing this forum: No registered users and 69 guests