File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments