aiogram / aiogram/telegram-bot-api

Couldnt download file from server

未关闭
#27 2 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
301
派生
84
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。