Expose downloaded files via Nginx
masterBy default, the tdlib/telegram-bot-api does not provide a way to download files from the API unless running in local-mode. To serve files to end-users, you must expose them using a separate web server like Nginx.
A common pattern for local development is to run the Telegram Bot API and Nginx as separate containers using docker-compose, where Nginx serves the files stored by the API.
# Example docker-compose structure
services:
telegram-bot-api:
image: aiogram/telegram-bot-api
# ... configuration ...
nginx:
image: nginx
# ... configuration to serve files from the API volume ...