We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad22a4f commit 7874369Copy full SHA for 7874369
src/BotApi.php
@@ -208,8 +208,8 @@ public function call($method, array $data = null)
208
* @param array $options
209
*
210
* @return mixed
211
+ *
212
* @throws \TelegramBot\Api\HttpException
- * @throws \TelegramBot\Api\InvalidJsonException
213
*/
214
protected function executeCurl(array $options)
215
{
@@ -636,6 +636,15 @@ public function getFile($fileId)
636
return File::fromResponse($this->call('getFile', ['file_id' => $fileId]));
637
}
638
639
+ /**
640
+ * Get file contents via cURL
641
642
+ * @param $fileId
643
644
+ * @return string
645
646
+ * @throws \TelegramBot\Api\HttpException
647
+ */
648
public function downloadFile($fileId)
649
650
$file = $this->getFile($fileId);
0 commit comments