diff --git a/lib/Zyberspace/Telegram/Cli/Client.php b/lib/Zyberspace/Telegram/Cli/Client.php index 35d2992..901db03 100644 --- a/lib/Zyberspace/Telegram/Cli/Client.php +++ b/lib/Zyberspace/Telegram/Cli/Client.php @@ -384,12 +384,12 @@ public function getHistory($peer, $limit = null, $offset = null) * @uses escapePeer() * @uses formatFileName() */ - public function sendPicture($peer, $path) + public function sendPicture($peer, $path , $caption) { $peer = $this->escapePeer($peer); $formattedPath = $this->formatFileName($path); - return $this->exec('send_photo ' . $peer . ' ' . $formattedPath); + return $this->exec('send_photo ' . $peer . ' ' . $formattedPath . ' ' . $caption); } /**