Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
4381657c
Commit
4381657c
authored
May 07, 2022
by
neil
Browse files
Update callmebotWhatsApp.sh
parent
d440b2f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
notify/callmebotWhatsApp.sh
View file @
4381657c
...
...
@@ -23,13 +23,13 @@ callmebotWhatsApp_send() {
if
[
-n
"
$CallMeBot_apikey
"
]
;
then
_saveaccountconf_mutable CallMeBot_apikey
"
$CallMeBot_apikey
"
fi
_waUrl
=
"https://api.callmebot.com/whatsapp.php"
_Phone_No
=
"
$(
printf
"%s"
"
$CallMeBot_Phone_No
"
| _url_encode
)
"
_apikey
=
"
$(
printf
"%s"
"
$CallMeBot_apikey
"
| _url_encode
)
"
_message
=
"
$(
printf
"
$CQHTTP_CUSTOM_MSGHEAD
*%s*
\\
n%s"
"
$_subject
"
"
$_content
"
| _url_encode
)
"
_finalUrl
=
"
$_waUrl
?phone=
$_Phone_No
&apikey=
$_apikey
&text=
$_message
"
response
=
"
$(
_get
"
$_finalUrl
"
)
"
...
...
@@ -41,4 +41,4 @@ callmebotWhatsApp_send() {
_debug
"URL"
"
$_finalUrl
"
_debug
"Response"
"
$response
"
return
1
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment