Telegram bot weird error : Bad Request: wrong file identifier/HTTP URL specified
There are many possible reasons for this as mentioned in the documentation:
- It is not possible to change the file type when resending by file_id. i.e. a video can't be sent as a photo, a photo can't be sent as a document, etc.
- It is not possible to resend thumbnails.
- Resending a photo by file_id will send all of its sizes.
- file_id is unique for each individual bot and can't be transferredfrom one bot to another.
Your Awnser is here @farzad
Sending by file_id
file_id is unique for each individual bot and can't be transferred from one bot to another.
Go to @webpagebot and send him an URL to the file. The telegram's cache will be invalidated, and this should work. Seems that it is a bug on the server.
In my case I couldn't upload an image (as sticker), http://.../blabla.webp
not via telegram app, not via telegram bot API.