Community discussions

MikroTik App
 
User avatar
loloski
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Mon Mar 15, 2021 9:10 pm

curl --form equivalent in /tool/fetch

Fri Oct 21, 2022 2:14 pm

Hey,

Do we have a direct equivalent of curl -F from fetch i'm trying to send a photo to telegram using this shell script in curl this can be accomplished so easily, can some one translate this to fetch or at least send me the right direction?, thanks in advance
#!/bin/bash
TOKEN="5396392689:AAFOjn9........"

ID='5119XXXXXX'
URL="https://api.telegram.org/bot$TOKEN/sendPhoto?parse_mode=HTML"

curl -s -X POST $URL -F chat_id=$ID -F photo=@daily.gif

Who is online

Users browsing this forum: JDF and 26 guests