- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
- print_r: documentation ( source)
<?php
$botToken = "295449529:AAEVqzowKbzMnaJ0P8SsYNJ1NXfn3Ky8zYA";
$website="https://api.telegram.org/bot".$botToken;
$update = file_get_contents($website."/getupdates");
$updateArray = json_decode($update,TRUE);
print_r($updateArray);
?>