<?php
header('Content-Type: text/html; charset= utf-8');
$token = 'МОЙ ТОКЕН';
$api = 'https://api.telegram.org/bot' . $token;
$output = json_decode(file_get_contents($api . '/getUpdates'), TRUE);
//var_dump($output);
$message = $output['message']['text'];
echo 'Текст' . $message;
?>