Community discussions

 
yujizmq
just joined
Topic Author
Posts: 2
Joined: Fri Feb 15, 2019 11:39 am

tool fetch and new line break

Thu Jun 27, 2019 1:41 pm

Hi all,

I want to send a notification via telegram when pppoe ip address changed, and i have already done it by /tool fetch.
But it doesn't support multi line messages, does any one know how to send new line break using "/tool fetch"?

My command:
/tool fetch http-method=get mode=https output=none url="https:/
/api.telegram.org/bot<Bot_Key>/sendMessag
e\?chat_id=<Chat_ID>&text=TestMessage"

status: finished
downloaded: 0KiBC-z pause]
total: 0KiB
duration: 0s
Command with line break:
/tool fetch http-method=get mode=https output=none url="https:/
/api.telegram.org/bot<Bot_Key>/sendMessag
e\?chat_id=<Chat_ID>&text=TestMessage\ntest2"

status: failed

action failed (6)

Who is online

Users browsing this forum: No registered users and 11 guests