aiogram / aiogram/telegram-bot-api

Couldnt download file from server

Offen
#27 2 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Shell
Sterne
301
Forks
84
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.