Community discussions

MikroTik App
 
Puffer
newbie
Topic Author
Posts: 25
Joined: Mon Mar 08, 2010 2:09 pm

sendphoto to telegram

Sun Jul 12, 2020 11:13 pm

Can anyone see what I am doing wrong here? Trying to send a local .gif file to a telegram chat.
/tool fetch url="https://api.telegram.org/bot###/sendPhoto\?chat_id=###" http-method=post http-header-field="content-type:photo" http-data="http://daily.gif" keep-result=no
Works perfectly with sendMessage, but cant get it to work with sendPhoto or sendDocument.
 
User avatar
BergDev
just joined
Posts: 14
Joined: Thu Mar 05, 2020 4:27 pm
Location: Russia
Contact:

Re: sendphoto to telegram

Mon Jul 13, 2020 10:36 am

Good time of the day, I looked through the API, can we try to use the function https://core.telegram.org/type/MessageMedia . After work, I will try to deploy a test bench to check the configuration of the script.
 
Kiasw
just joined
Posts: 1
Joined: Wed Jul 15, 2020 11:07 pm

Re: sendphoto to telegram

Wed Jul 15, 2020 11:18 pm

Greetings dear! Are there any results on sending a document from Mikrotik via api telegram ?

Who is online

Users browsing this forum: caldo85, malks and 14 guests