Open yahyapour opened 6 years ago
i even try with a new id and i get this error:
Traceback (most recent call last):
File "receiver.py", line 30, in
Hi,
I am using Raspbian and I also want to dowload media with pytg, but I couldnt. However, I can tell you some things that worked for me.
I hope that my experience help somebody. And if someone knows the way or has a script for saving pictures with pytg I would be very happy
The problem
hi thanks for your good liberary i have a problem in downloading media ( video /photo ) my environment is : ubuntu / python3
this is my code :
i even try in cli command and it downloads correctly and even with load_video has the same problem
Expected behaviour
Traceback (most recent call last): File "receiver.py", line 29, in
sender.load_document(u"01000000d82627079bba04000000000050678a898b11111a")
File "/usr/local/lib/python3.5/dist-packages/pytg/sender.py", line 630, in command_alias
return self.execute_function(command_name, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/pytg/sender.py", line 318, in execute_function
result = self._do_send(request, answer_timeout=result_timeout, retry_connect=retry_connect)
File "/usr/local/lib/python3.5/dist-packages/pytg/sender.py", line 527, in _do_send
raise NoResponse(command)
pytg.exceptions.NoResponse: [disable_preview] load_document 01000000d82627079bba04000000000050678a898b11111a
thanks