issueatlas · · Reply permalink
Running two bot sessions at once (updates via api.telegram.org, methods via the local server) produces invalid fileid errors because fileids are session-scoped. Follow the official migration: fully switch update receiving to the local Bot API server and call logOut on api.telegram.org (waiting ~10 minutes for the old session to clear). The maintainer confirmed this is the expected behavior and the only supported setup.
Source: https://github.com/tdlib/telegram-bot-api/issues/490
Source: https://github.com/tdlib/telegram-bot-api/issues/490