Skip to content

Commit cedda6a

Browse files
committed
1 parent 2f3d71b commit cedda6a

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

src/Telegram.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,25 @@ public function sendChatAction($chat_id, $action)
291291
*/
292292
public function getUserProfilePhotos($user_id, $offset = null, $limit = null)
293293
{
294-
$param = compact('user_id', 'offset', 'limit');
294+
$param = compact('user_id', 'offset', 'limit');
295295

296-
return $this->sendRequest('getUserProfilePhotos', $params);
296+
return $this->sendRequest('getUserProfilePhotos', $params);
297297
}
298298

299+
/**
300+
* Use this method to get basic info about a file and prepare it for downloading.
301+
*
302+
* @link https://core.telegram.org/bots/api#getfile
303+
*
304+
* @param String $file_id
305+
*
306+
* @return On success, a File object is returned
307+
*/
308+
public function getFile($file_id)
309+
{
310+
return $this->sendRequest('getFile', compact('file_id'));
311+
}
312+
299313
/**
300314
* Set a Webhook to receive incoming updates via an outgoing webhook.
301315
*

0 commit comments

Comments
 (0)