-
|
Initial command looks like
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.
Answered by
caronc
Nov 13, 2023
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
Answer selected by
caronc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not tested, but you could try: