Community discussions

MikroTik App
 
DyadyaGenya
Member Candidate
Member Candidate
Topic Author
Posts: 222
Joined: Mon May 08, 2023 10:34 pm

POST send message to telegram from Netwatch

Sun Nov 05, 2023 12:02 am

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.
 
User avatar
Filo
newbie
Posts: 42
Joined: Thu Jan 13, 2022 2:37 pm
Location: Germany

Re: POST send message to telegram from Netwatch

Wed Nov 08, 2023 8:09 am

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!

Who is online

Users browsing this forum: No registered users and 10 guests