Replies: 1 comment
-
Not tested, but you could try: # from a file:
curl -X POST \
-F 'title=Title' \
-F "body=$(<file.with.multi.lines)" \
https://server/notify/tg
# from an environment variable
MULTILINE_VAR="
This variable has been defined
with multiple lines in it."
curl -X POST \
-F 'title=Title' \
-F "body=$MULTILINE_VAR" \
https://server/notify/tg
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Initial command looks like
curl -k -X POST -d "title=Title&body=Text1Text2" https://server/notify/tg
How to modify it in order to receive a message in telegram like this?
I tried escape sequence "\n", but it fails.
Beta Was this translation helpful? Give feedback.
All reactions