php-telegram-cli-client icon indicating copy to clipboard operation
php-telegram-cli-client copied to clipboard

problem in load photo

Open ayoob-faraji opened this issue 7 years ago • 0 comments

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??

ayoob-faraji avatar Sep 20 '17 07:09 ayoob-faraji