IFTTT – Send MP3 File to Telegram Invalid Bots API Response

if-this-then-thattelegram

I'm trying to use IFTTT web hooks to send an mp3 file to Telegram, but keep getting this error on almost every link I try.

This is the error in IFTTT's activity page:

Telegram error: Invalid Bots API response

enter image description here

Examples:

Any idea why it keeps failing?

I'm trying for sometime now, but no progress.

Best Answer

Ok, found it after digging in Telegram's bots api - File size limit.

There's a limit of 20 MB for files sent with an HTTP URL, and 50 MB if sent with multipart/form-data when uploaded from the browser.

The file that was working was 12 MB, while the other was 54 MB 😕

Quoting:

Sending files

...

  1. Provide Telegram with an HTTP URL for the file to be sent. Telegram will download and send the file. 5 MB max size for photos and 20 MB max for other types of content.
  2. Post the file using multipart/form-data in the usual way that files are uploaded via the browser. 10 MB max size for photos, 50 MB for other files.