Skip to content

Commit

Permalink
getFile function added
Browse files Browse the repository at this point in the history
  • Loading branch information
mgp25 committed Sep 20, 2015
1 parent 2f3d71b commit cedda6a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/Telegram.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,25 @@ public function sendChatAction($chat_id, $action)
*/
public function getUserProfilePhotos($user_id, $offset = null, $limit = null)
{
$param = compact('user_id', 'offset', 'limit');
$param = compact('user_id', 'offset', 'limit');

return $this->sendRequest('getUserProfilePhotos', $params);
return $this->sendRequest('getUserProfilePhotos', $params);
}

/**
* Use this method to get basic info about a file and prepare it for downloading.
*
* @link https://core.telegram.org/bots/api#getfile
*
* @param String $file_id
*
* @return On success, a File object is returned
*/
public function getFile($file_id)
{
return $this->sendRequest('getFile', compact('file_id'));
}

/**
* Set a Webhook to receive incoming updates via an outgoing webhook.
*
Expand Down

0 comments on commit cedda6a

Please sign in to comment.