You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to upload a file or a set of files I get next error in debian testing:
user@debian:~$ telegram-upload --to pics --force-file --directories recursive /media/DATOS/media/pics/
Uploading "me.jpg" [####################################] 100%
Traceback (most recent call last):
File "/usr/local/bin/telegram-upload", line 8, in <module>
sys.exit(upload_cli())
File "/usr/local/lib/python3.9/dist-packages/telegram_upload/exceptions.py", line 50, in wrap
return fn(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/telegram_upload/management.py", line 101, in upload
client.send_files(to, files, delete_on_success, print_file_id, force_file, forward, caption, thumbnail)
File "/usr/local/lib/python3.9/dist-packages/telegram_upload/client.py", line 139, in send_files
message = self.send_file(entity, file, thumb=thumb,
File "/usr/local/lib/python3.9/dist-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/dist-packages/telethon/client/uploads.py", line 372, in send_file
return self._get_response_message(request, await self(request), entity)
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 79, in _call
result = await future
telethon.errors.rpcerrorlist.ChatWriteForbiddenError: You can't write in this chat (caused by SendMediaRequest)
In the raspberry Pi I get very similar error doing the same:
pi@raspberrypi:~ $ telegram-upload --to pics --force-file --directories recursive /media/DATOS/media/pics/
Uploading "me.jpg" [####################################] 100%
Traceback (most recent call last):
File "/usr/local/bin/telegram-upload", line 10, in <module>
sys.exit(upload_cli())
File "/usr/local/lib/python3.7/dist-packages/telegram_upload/exceptions.py", line 50, 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.7/dist-packages/telegram_upload/management.py", line 101, in upload
client.send_files(to, files, delete_on_success, print_file_id, force_file, forward, caption, thumbnail)
File "/usr/local/lib/python3.7/dist-packages/telegram_upload/client.py", line 142, in send_files
progress_callback=progress, attributes=attributes)
File "/usr/local/lib/python3.7/dist-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/usr/local/lib/python3.7/dist-packages/telethon/client/uploads.py", line 372, in send_file
return self._get_response_message(request, await self(request), entity)
File "/usr/local/lib/python3.7/dist-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "/usr/local/lib/python3.7/dist-packages/telethon/client/users.py", line 79, in _call
result = await future
telethon.errors.rpcerrorlist.ChatWriteForbiddenError: You can't write in this chat (caused by SendMediaRequest)
I'm trying to upload files in a private channel. The private channel only has 1 member and this member is the administrator. And this user absolutely has all the permissions.
Do I have to add another user in order upload with telegram upload?
Any solution in order to fix the problem? Right now in my case the software is completely broken.
How can I have permission for an specific chat id? I really thought that if you introduce information about api, your phone number and the access code then you should have permissions. Oww I see you are Spanish :D (Yo también)
pip freeze
):Description
When I try to upload a file or a set of files I get next error in debian testing:
In the raspberry Pi I get very similar error doing the same:
What I Did
sudo pip3 install -U telegram-upload
https://my.telegram.org/auth
telegram-upload --to pics --force-file --directories recursive /media/DATOS/media/pics/
The text was updated successfully, but these errors were encountered: