Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

problem in load photo #34

Open
ayoob-faraji opened this issue Sep 20, 2017 · 0 comments
Open

problem in load photo #34

ayoob-faraji opened this issue Sep 20, 2017 · 0 comments

Comments

@ayoob-faraji
Copy link

ayoob-faraji commented Sep 20, 2017

Hi
I added this function in Client.php class for downloading images.

public function getImage($messageId)
{
        return $this->exec('load_photo '.$messageId);
}

but I have a problem when I want to download images .it usually returned false and sometimes returned true with this json file and downloaded file. I do not know why it happens and I could not download

{
  "result": "~/.telegram-cli/downloads/download_434226810_148633.jpg"
  "event": "download"
}

the size of photos are about 74 KB . for example when I wanted to download 5 photos I called getImage without any interval.
what is the problem ?? Who can help me??

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

No branches or pull requests

1 participant