0

I'm trying to send a file to a Telegram bot through a webhook. I will upload the file (a pdf document) using php and then send a request to the bot webhook to receive the file and do some processing to it.

I'm using Advanced Rest Client (Desktop app) to test this. This is the CURL code that generates:

curl "https://mytelegram.bot:8443/notify" \
-X POST \
-d {} \
-H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundarydGdDH5I9p5ZBfrzu"

It returns a 415 Unsupported Media Type response and I don't know what to do exactly.

I'm using Telegraf framework to build this bot.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
JCAguilera
  • 944
  • 1
  • 13
  • 32

0 Answers0