-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Hi!
I have a problem.
Deploying docker with the command:
docker run -d -p 8081:8081 --name=telegram-bot-api --restart=always -v telegram-bot-api-data:/var/lib/telegram-bot-api -e TELEGRAM_API_ID=XXXXXXX -e TELEGRAM_API_HASH=XXXXXXXXXXX -e TELEGRAM_LOCAL=True aiogram/telegram-bot-api:latest
I start the bot, I start transferring a large file to the bot.
When the bot.get_file(file_id) command is called, the file data is returned.
file_info:
file_id='BAACAgIAAxkBAAPKaCMKpB0eK6F5lMBDo0k9UuLaStEAAiNfAAKVBelI-s7ISjg6lVQ2BA' fille_unique_id='AgADI18AApUF6Ug' file_size=97548419 file_path='/var/lib/telegram-bot-api/7843XXXXXXXXXXXXXXXcc/videos/file_0.mp4'
And here is the bot.download_file call(.....) error is returned:
ERROR:main:Common Error: [Errno 2] No such file or directory: '/var/lib/telegram-bot-api/7843xxxxxxxxxxxxxxcc/videos/file_0.mp4'
the file itself is in docker.
I tried to change the paths - nothing helps.
What could be the problem?
Running on Mac OS