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