Telegram uses combination of Service Workers, Web sockets and fetch API for streaming. Instead of downloading the entire file at once Telegram uses streaming downloads which allows data to be received in chunks.