A bot pointed at a self-hosted telegram-bot-api server started with --local could send/receive messages, but sending any file over 50 MB failed with telegram.error.BadRequest: File is too big - as if local mode was not active. The server was launched as: ./telegram-bot-api --api-id=... --api-hash [value] --local. getUpdates against loopback:8081 worked, so the bot was talking to a server on that port.