In my project, I need to use two telegram bots, which are linked by one database. I faced the following difficulty: having received a photo_id from one bot, I can only use it in this bot, the other bot does not have access to the files.
ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: wrong file identifier/HTTP URL specified
At the same time, exactly the same line of code in the first bot successfully sends a photo
If I try to make an URL with this file, then it is downloaded, therefore, you will not be able to send a photo via the link.
Is it possible to use documents received from another bot without saving them to the database?