Page 1 of 1

POST send message to telegram from Netwatch

Posted: Sun Nov 05, 2023 12:02 am
by DyadyaGenya
I'm trying to send a message to Telegram from Netwatch. If I use a GET request, then this is quite easy. Looks like this:
/tool ​​fetch url="https://api.telegram.org/bot_id/sendMessage\?chat_id=xxxxxxxxxx&text=TelegramMessageText"
But I would like to make not a GET request, but a POST.

Re: POST send message to telegram from Netwatch

Posted: Wed Nov 08, 2023 8:09 am
by Filo
Hey,

I read this multiple times but still do not understand the purpose.
Telegram works exactly the way you described - you'll have to use the above HTTP-"GET" in order to send a message.
Also your MikroTik will love "GET", since it is quite easy to fire a HTTP-Request from it.

Can you explain, why you need to "POST" in you case?

Regards,
Martin!