тут не версии дело мне кажется что у вас правами что то на хосте
// initialise the curl request
$request = curl_init('https://api.telegram.org/botТУТ_ТОКЕН/sendphoto');
// send a file
curl_setopt($request, CURLOPT_POST, true);
curl_setopt(
$request,
CURLOPT_POSTFIELDS,
array(
'chat_id' => 'ИД_ЧАТА',
'photo' => '@' . realpath('absolute path to photo on disk')
));
// output the response
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($request);
// close the session
curl_close($request);
<?php $text = $_GET["text"]; $BASH_Command='curl -s -X POST "https://api.telegram.org/bot...токен бота.../sendPhoto?chat_id=ид чата" -F photo="@snapshot.jpg" -F caption={$text} > /dev/null &'; echo exec($BASH_Command); ?>
sendMessage?chat_id={$chat_id}&parse_mode=html&text={$text}
caption="' . htmlspecialchars($_GET["text"]) . '"
))))<?php $BASH_Command='curl -s -X POST "https://api.telegram.org/bot(токен бота, скобки убирайте)/sendPhoto?chat_id=(Ид чата скобки убирайте)" -F photo="@snapshot.jpg" -F caption="' . htmlspecialchars($_GET["text"]) . '" > /dev/null &'; echo exec($BASH_Command); ?>