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
53d26e5c
Commit
53d26e5c
authored
Apr 08, 2021
by
Mike Beattie
Browse files
Add debug output of $_data variable to aid diagnosis
Signed-off-by:
Mike Beattie
<
mike@ethernal.org
>
parent
e21f3e6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
notify/telegram.sh
View file @
53d26e5c
...
...
@@ -34,6 +34,8 @@ telegram_send() {
_data
=
"
$_data
\"
parse_mode
\"
:
\"
markdown
\"
, "
_data
=
"
$_data
\"
disable_web_page_preview
\"
:
\"
1
\"
}"
_debug
"
$_data
"
export
_H1
=
"Content-Type: application/json"
_telegram_bot_url
=
"https://api.telegram.org/bot
${
TELEGRAM_BOT_APITOKEN
}
/sendMessage"
if
_post
"
$_data
"
"
$_telegram_bot_url
"
;
then
...
...
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