mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 05:01:40 +00:00
Update callmebotWhatsApp.sh
This commit is contained in:
parent
d440b2f2b2
commit
4381657c5e
@ -23,13 +23,13 @@ callmebotWhatsApp_send() {
|
|||||||
if [ -n "$CallMeBot_apikey" ]; then
|
if [ -n "$CallMeBot_apikey" ]; then
|
||||||
_saveaccountconf_mutable CallMeBot_apikey "$CallMeBot_apikey"
|
_saveaccountconf_mutable CallMeBot_apikey "$CallMeBot_apikey"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_waUrl="https://api.callmebot.com/whatsapp.php"
|
_waUrl="https://api.callmebot.com/whatsapp.php"
|
||||||
|
|
||||||
_Phone_No="$(printf "%s" "$CallMeBot_Phone_No" | _url_encode)"
|
_Phone_No="$(printf "%s" "$CallMeBot_Phone_No" | _url_encode)"
|
||||||
_apikey="$(printf "%s" "$CallMeBot_apikey" | _url_encode)"
|
_apikey="$(printf "%s" "$CallMeBot_apikey" | _url_encode)"
|
||||||
_message="$(printf "$CQHTTP_CUSTOM_MSGHEAD *%s*\\n%s" "$_subject" "$_content" | _url_encode)"
|
_message="$(printf "$CQHTTP_CUSTOM_MSGHEAD *%s*\\n%s" "$_subject" "$_content" | _url_encode)"
|
||||||
|
|
||||||
_finalUrl="$_waUrl?phone=$_Phone_No&apikey=$_apikey&text=$_message"
|
_finalUrl="$_waUrl?phone=$_Phone_No&apikey=$_apikey&text=$_message"
|
||||||
response="$(_get "$_finalUrl")"
|
response="$(_get "$_finalUrl")"
|
||||||
|
|
||||||
@ -41,4 +41,4 @@ callmebotWhatsApp_send() {
|
|||||||
_debug "URL" "$_finalUrl"
|
_debug "URL" "$_finalUrl"
|
||||||
_debug "Response" "$response"
|
_debug "Response" "$response"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user