TeleBot
Telegram Bot Framework for creating any bots
Created By Arash Abedi
Get file info
# getFile(array $params)
You can send get file info by file_id
Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot
You can pass parameters in array to this method
see getFile parameters on telegram doc
# examples
<?php
namespace App\Controllers;
use App\Modules\ExampleModule;
class MessageHandler{
public function run(){
//$params=['param_name'=>'param_value']
bot()->getFile(['file_id'=>'']);
}
}