'telegram bot file_id (Bad Request: wrong file_id or the file is temporarily unavailable)
I have this old update
[
{
"update_id": 701193441,
"channel_post": {
"message_id": 286,
"chat": {
"id": -1001502877609
},
"date": 1648754113,
"text": null,
"photo": null,
"caption": null,
"media_group_id": null,
"video": {
"duration": 31,
"width": 464,
"height": 848,
"file_name": null,
"mime_type": "video/mp4",
"thumb": {
"file_id": "AAMCAgADHQJZlBepAAIBHmJF_cGI-Cei0vWfPjGn6_ufrnzjAAJQHwACO14YSrd19WRW-FX4AQAHbQADIwQ",
"file_unique_id": "AQADUB8AAjteGEpy",
"file_size": 15528,
"width": 175,
"height": 320
},
"file_id": "BAACAgIAAx0CWZQXqQACAR5iRf3BiPgnotL1nz4xp-v7n6584wACUB8AAjteGEq3dfVkVvhV-CME",
"file_unique_id": "AgADUB8AAjteGEo",
"file_size": 4480287
},
"animation": null,
"document": null
},
"edited_channel_post": null,
"message": null,
"edited_message": null
}
]
this post still exists, around month left, but when I try to call getFile method I get Bad Request: wrong file_id or the file is temporarily unavailable error.
I wrote to @BotSupport but they didn't answer
How can I get this file via bot without editing post?
It worked for me, but after month it doesn't. Seems like telegram changes file_id but how to get new I can't find
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
