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

problem in load photo #34

@ayoob-faraji

Description

@ayoob-faraji

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

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