Skip to content

NoResponse: [disable_preview] load_document  #126

@yahyapour

Description

@yahyapour

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 :

sender = Sender(host="localhost", port=4458)
sender.load_document(u"01000000d82627079bba04000000000050678a898b11111a")

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions