I’m trying to download an attachment from Telegram bot. I receive message ok, pass File ID and get 400 error. I tried with images and files.
Hi there,
This error is directly coming from telegram.
We would need more information to debug this like:
Have you checked the file to see if it exists?
Is the file mapped correctly?
Have you tried this again and seen the behaviour?
Thanks!
I tried with images via Postman and that works via 2 step process.
https://api.telegram.org/bot{bot token}/getFile?file_id={file_id} to get file path and
https://api.telegram.org/file/bot{token}/{file_path}
I have no idea how Telegram Download file module is implemented and why it does not pass file id correctly. It is received and can be used in Postman with images, with voice message it fails everywhere.
have you resolved your issue? I’m getting the same mistake, nevermind the file type, videos, files, images…
is it a bug ?
Hey, curious to see if someone has been able to resolve that… I am getting the same message and can not download a voice file
received a response from make support
Hi Maximus,
Thank you for getting in touch with us and for your interest in using our platform. Milo from the Customer Care team here.
I have inspected the scenario that you are referring to and everything looks correct on Make’s side. It seems like Telegram’s API is not accepting the file ID for some reason. I would suggest contacting Telegram’s team and asking them for an explanation. Please share with them the attached API request and their repsonse:
{
“response”: {
“status”: 400,
“headers”: {
“server”: “nginx/1.18.0”,
“date”: “Tue, 27 Feb 2024 16:00:06 GMT”,
“content-type”: “application/json”,
“content-length”: “111”,
“connection”: “close”,
“strict-transport-security”: “max-age=31536000; includeSubDomains; preload”,
“access-control-allow-origin”: “*”,
“access-control-expose-headers”: “Content-Length,Content-Type,Date,Server,Connection”
},
“body”: {
“ok”: false,
“error_code”: 400,
“description”: “Bad Request: wrong file_id or the file is temporarily unavailable”
}
},
“request”: {
“url”: “https://api.telegram.org/bot5043884045:AAGO13ulyvSj85UU2Yf2Xoya_PuqwyMDljY/getFile”,
“qs”: {
“file_id”: “AgACAgIAAxkBAAMIZd4GQjItGSxYJuhwg9mHfUVS7eEAA9wxG1cB8UqD7Er_eIna1wEAAwIAA3MAAzQE”
},
“headers”: {
“user-agent”: “Make/production”,
“content-type”: “application/json”
},
“method”: “POST”
}
}If they state that there is something wrong with our request, we can then investigate further with our dev team.
Hi @Maximus
Thank you very much for sharing the insights you got from our support team with the rest of the community This is much appreciated
Feel free to keep us posted on your progress as you reach out to Telegram and hear back from them.