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
Code: Select all
#!/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