Я написал вот это
foreach ($photos as $photo) {
$response = Telegram::sendPhoto([
'chat_id' => 'CHAT_ID',
'photo' => "https://domen.ru/{$photo}",
'caption' => ''
]);
$messageId[] = $response->getMessageId();
}
И отправляю сообщение вот так
Telegram::sendMessage([
'chat_id' => $chat_id,
'text' => $reply,
'reply_markup' => $reply_markup
]);
Но выдает ошибку
local.ERROR: A path to local file, a URL, or a file resource should be uploaded using `Telegram\Bot\FileUpload\InputFile::create($pathOrUrlOrResource, $filename)` for `photo` property. Please view docs for example. {"exception":"[object] (Telegram\\Bot\\Exceptions\\CouldNotUploadInputFile(code: 0): A path to local file, a URL, or a file resource should be uploaded using `Telegram\\Bot\\FileUpload\\InputFile::create($pathOrUrlOrResource, $filename)` for `photo` property. Please view docs for example. at /var/www/u1240338/data/www/chpokepanel.xyz/rest/vendor/irazasyed/telegram-bot-sdk/src/Exceptions/CouldNotUploadInputFile.php:52)