telegram bot api: 错误请求: 错误 file_id 或文件暂时不可用

telegram bot api: Bad Request: wrong file_id or the file is temporarily unavailable

错误请求:错误file_id或文件暂时不可用

有时,当我使用电报机器人 api 的 getFile 方法从 Telegram 请求文件 url 时,我收到此错误,我没有找到任何解释。如果有资料,请赐教。谢谢

这是联系的结果t.me/BotSupport:

I've asked our team to check, they confirmed there is no exact issues with the bot, when getting an error like that, the way to go is to retry after a moment, it should be transient and goes away on it's own.

当然,这是在我们确定 bot 发送了一个属于它自己的 file_id 的时候。 (而不是另一个机器人的 file_id)