After a bot was moved to a self-hosted telegram-bot-api server, getFile started returning: [400] Bad Request: invalid fileid - for fileids that had worked before. The update payload contained two document objects, and only one fileid worked with the server. The bot was still receiving updates via api.telegram.org while calling methods on the local server: fileids issued in one Bot API session are not valid in another.