Nekmo / telegram-upload

Upload and download files from Telegram up to 4 GiB using your account
MIT License
1.09k stars 237 forks source link

Forward option #208

Closed tulkarxxx closed 1 year ago

tulkarxxx commented 1 year ago

-f, --forward Forward the file to a chat (alias or id) or user (username, mobile or id). This option can be used multiple times.

Description

Seems to be I am doing something wrong, I am executing for example telegram-upload -f 135662XX --large-files split mifile.mkv

The firts split it is always uploaded to my personal forder and raising error, not uploading second split

What I Did

telegram-upload -f 135662XX --large-files split mifile.mkv

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Traceback (most recent call last): File "/usr/local/bin/telegram-upload", line 8, in sys.exit(upload_cli()) File "/usr/local/lib/python3.8/dist-packages/telegram_upload/exceptions.py", line 68, in wrap return fn(*args, kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 764, in call return self.main(args, kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke return callback(args, kwargs) File "/usr/local/lib/python3.8/dist-packages/telegram_upload/management.py", line 191, in upload client.send_files(to, files, delete_on_success, print_file_id, forward) File "/usr/local/lib/python3.8/dist-packages/telegram_upload/client/telegram_upload_client.py", line 140, in send_files self.forward_to(message, forward) File "/usr/local/lib/python3.8/dist-packages/telegram_upload/client/telegram_upload_client.py", line 37, in forward_to self.forward_messages(destination, [message]) File "/usr/local/lib/python3.8/dist-packages/telethon/sync.py", line 39, in syncified return loop.run_until_complete(coro) File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/usr/local/lib/python3.8/dist-packages/telethon/client/messages.py", line 977, in forward_messages entity = await self.get_input_entity(entity) File "/usr/local/lib/python3.8/dist-packages/telethon/client/users.py", line 437, in get_input_entity await self._get_entity_from_string(peer)) File "/usr/local/lib/python3.8/dist-packages/telethon/client/users.py", line 574, in _get_entity_from_string raise ValueError( ValueError: Cannot find any entity corresponding to "135662XX"

tulkarxxx commented 1 year ago

HI, this is the real command, I am trying to upload a complete folder under my google drive mount

/mnt/hdd/drive/Peliculas/Microhd# cd /mnt/hdd/drive/Peliculas/Microhd/ && find $(pwd) -maxdepth 3 -type f -not -path '/.' -exec telegram-upload -f 135662XX --large-files split {} \;

Nekmo commented 1 year ago

Hi, are you sure your group id is correct and your account is in the group? Thanks.

tulkarxxx commented 1 year ago

Hi, yes, the group id is correct Best regards

tulkarxxx commented 1 year ago

closed

Nekmo commented 1 year ago

Has the issue been resolved? Have you been able to solve it?

tulkarxxx commented 1 year ago

yes

El jue, 6 jul 2023 a las 16:01, Nekmo @.***>) escribió:

Has the issue been resolved? Have you been able to solve it?

— Reply to this email directly, view it on GitHub https://github.com/Nekmo/telegram-upload/issues/208#issuecomment-1623734943, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZ7QYALRAVICPRSHIS26K3XO3AK7ANCNFSM6AAAAAAZ772LO4 . You are receiving this because you modified the open/close state.Message ID: @.***>

Nekmo commented 1 year ago

yes El jue, 6 jul 2023 a las 16:01, Nekmo @.>) escribió: Has the issue been resolved? Have you been able to solve it? — Reply to this email directly, view it on GitHub <#208 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZ7QYALRAVICPRSHIS26K3XO3AK7ANCNFSM6AAAAAAZ772LO4 . You are receiving this because you modified the open/close state.Message ID: @.>

Has it worked for you using a numeric id?

tulkarxxx commented 1 year ago

Yes

Nekmo commented 1 year ago

Thanks :) I close the issue.