fix wrong parameters description
It works great with:
php
$filename = __DIR__ . time() . ".jpg";
file_put_contents($filename, fopen($link, 'r'));
$result = Request::sendPhoto(
[
'chat_id' => Config::getTelegramChat(),
],
$filename
);