. * * @author Daniil Gentili * @copyright 2016-2023 Daniil Gentili * @license https://opensource.org/licenses/AGPL-3.0 AGPLv3 * @link https://docs.madelineproto.xyz MadelineProto documentation */ namespace danog\MadelineProto; /** * File callback interface. * * @template T */ interface FileCallbackInterface { /** * Get file. * * @return T */ public function getFile(): mixed; /** * Invoke callback. * * @param float $percent Percent * @param float $speed Speed in mbps * @param float $time Time */ public function __invoke(float $percent, float $speed, float $time); }