diff --git a/src/Interfaces/AppInterface.php b/src/Interfaces/AppInterface.php index 150d41a..d44538d 100644 --- a/src/Interfaces/AppInterface.php +++ b/src/Interfaces/AppInterface.php @@ -24,7 +24,7 @@ public function sendMessage( /** * Send a photo to telegram * - * @param string $photo + * @param string $photo (path to photo) * @param string $caption * * @return void diff --git a/src/Services/AppService.php b/src/Services/AppService.php index 8de81eb..2478b1e 100644 --- a/src/Services/AppService.php +++ b/src/Services/AppService.php @@ -58,7 +58,7 @@ public function sendPhoto(string $photo = '', string $caption = ''): void } $content = $this->createBaseContent(); - $content['photo'] = $photo; + $content['photo'] = curl_file_create($photo); $content['caption'] = $caption; $this->telegram->sendPhoto($content);