Skip to content

Commit 7874369

Browse files
committed
Docs
1 parent ad22a4f commit 7874369

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/BotApi.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ public function call($method, array $data = null)
208208
* @param array $options
209209
*
210210
* @return mixed
211+
*
211212
* @throws \TelegramBot\Api\HttpException
212-
* @throws \TelegramBot\Api\InvalidJsonException
213213
*/
214214
protected function executeCurl(array $options)
215215
{
@@ -636,6 +636,15 @@ public function getFile($fileId)
636636
return File::fromResponse($this->call('getFile', ['file_id' => $fileId]));
637637
}
638638

639+
/**
640+
* Get file contents via cURL
641+
*
642+
* @param $fileId
643+
*
644+
* @return string
645+
*
646+
* @throws \TelegramBot\Api\HttpException
647+
*/
639648
public function downloadFile($fileId)
640649
{
641650
$file = $this->getFile($fileId);

0 commit comments

Comments
 (0)