Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files don't download #58

Open
razielaka opened this issue Dec 3, 2024 · 1 comment
Open

Files don't download #58

razielaka opened this issue Dec 3, 2024 · 1 comment
Assignees

Comments

@razielaka
Copy link

I've tried sending *.jpg files (as documents) and they are correctly downloaded. However, as photos, they aren't downloaded. In addition, I've tried pdf and epub files. These aren't downloaded either.
Here is the error I got when I uploaded a pdf file:

telegram-download-daemon-ng  |   File "/usr/src/telegram-download-daemon-ng/src/telegram_download_daemon_ng/__init__.py", line 137, in handler
telegram-download-daemon-ng  |     await queue_download(event,
telegram-download-daemon-ng  |                          channel=event.message.peer_id.channel_id,
telegram-download-daemon-ng  |                          message_id=event.message.id)
telegram-download-daemon-ng  |   File "/usr/src/telegram-download-daemon-ng/src/telegram_download_daemon_ng/__init__.py", line 210, in queue_download
telegram-download-daemon-ng  |     reply_msg = await event.reply("{item} added to queue".format(item=new_download_media.get_link()))
telegram-download-daemon-ng  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |   File "/root/.cache/pypoetry/virtualenvs/telegram-download-daemon-ng-qBVbOPCq-py3.13/lib/python3.13/site-packages/telethon/tl/custom/message.py", line 776, in reply
telegram-download-daemon-ng  |     return await self._client.send_message(
telegram-download-daemon-ng  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |         await self.get_input_chat(), *args, **kwargs)
telegram-download-daemon-ng  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |   File "/root/.cache/pypoetry/virtualenvs/telegram-download-daemon-ng-qBVbOPCq-py3.13/lib/python3.13/site-packages/telethon/client/messages.py", line 908, in send_message
telegram-download-daemon-ng  |     result = await self(request)
telegram-download-daemon-ng  |              ^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |   File "/root/.cache/pypoetry/virtualenvs/telegram-download-daemon-ng-qBVbOPCq-py3.13/lib/python3.13/site-packages/telethon/client/users.py", line 30, in __call__
telegram-download-daemon-ng  |     return await self._call(self._sender, request, ordered=ordered)
telegram-download-daemon-ng  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |   File "/root/.cache/pypoetry/virtualenvs/telegram-download-daemon-ng-qBVbOPCq-py3.13/lib/python3.13/site-packages/telethon/client/users.py", line 87, in _call
telegram-download-daemon-ng  |     result = await future
telegram-download-daemon-ng  |              ^^^^^^^^^^^^

When I send a jpg file as an image (and compressed) this is the error:

telegram-download-daemon-ng  |   File "/usr/src/telegram-download-daemon-ng/src/telegram_download_daemon_ng/__init__.py", line 137, in handler
telegram-download-daemon-ng  |     await queue_download(event,
telegram-download-daemon-ng  |                          channel=event.message.peer_id.channel_id,
telegram-download-daemon-ng  |                          message_id=event.message.id)
telegram-download-daemon-ng  |   File "/usr/src/telegram-download-daemon-ng/src/telegram_download_daemon_ng/__init__.py", line 210, in queue_download
telegram-download-daemon-ng  |     reply_msg = await event.reply("{item} added to queue".format(item=new_download_media.get_link()))
telegram-download-daemon-ng  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |   File "/root/.cache/pypoetry/virtualenvs/telegram-download-daemon-ng-qBVbOPCq-py3.13/lib/python3.13/site-packages/telethon/tl/custom/message.py", line 776, in reply
telegram-download-daemon-ng  |     return await self._client.send_message(
telegram-download-daemon-ng  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |         await self.get_input_chat(), *args, **kwargs)
telegram-download-daemon-ng  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |   File "/root/.cache/pypoetry/virtualenvs/telegram-download-daemon-ng-qBVbOPCq-py3.13/lib/python3.13/site-packages/telethon/client/messages.py", line 908, in send_message
telegram-download-daemon-ng  |     result = await self(request)
telegram-download-daemon-ng  |              ^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |   File "/root/.cache/pypoetry/virtualenvs/telegram-download-daemon-ng-qBVbOPCq-py3.13/lib/python3.13/site-packages/telethon/client/users.py", line 30, in __call__
telegram-download-daemon-ng  |     return await self._call(self._sender, request, ordered=ordered)
telegram-download-daemon-ng  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
telegram-download-daemon-ng  |   File "/root/.cache/pypoetry/virtualenvs/telegram-download-daemon-ng-qBVbOPCq-py3.13/lib/python3.13/site-packages/telethon/client/users.py", line 56, in _call
telegram-download-daemon-ng  |     raise errors.FloodWaitError(request=r, capture=diff)

When I forward a file to the channel, this is the error:

telegram-download-daemon-ng  |   File "/usr/src/telegram-download-daemon-ng/src/telegram_download_daemon_ng/__init__.py", line 132, in handler
telegram-download-daemon-ng  |     channel=channel_msg.chat.id,
telegram-download-daemon-ng  |             ^^^^^^^^^^^^^^^^^^^
@Nyaran Nyaran self-assigned this Dec 3, 2024
@Nyaran
Copy link
Owner

Nyaran commented Dec 3, 2024

Hi,

I tried to reproduce it, but I'm unable to do it, is working fine to me.

Are you using a bot or your personal account?
Which Telegram client are you using?
How are you running the daemon? Which version of python/docker are you using? And the version of the daemon?

Are there more log message around those you pasted? That messages could be helpful too (remove channel_id or any other sensitive data before paste it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants