aiogram / aiogram/telegram-bot-api

Couldnt download file from server

Aberta
#27 2 comentários 3 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Shell
Estrelas
301
Forks
84
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.