From b476f6f0b78b3e6efd3dce80e28c958dc6cc43ee Mon Sep 17 00:00:00 2001 From: Manu Fuentes Date: Fri, 12 Aug 2016 14:10:24 -0600 Subject: [PATCH] Update Client.php --- lib/Zyberspace/Telegram/Cli/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /**