This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// recupero il contenuto inviato da Telegram | |
$content = \file_get_contents('php://input'); | |
// converto il contenuto da JSON ad array PHP | |
$update = \json_decode($content, true); | |
// se la richiesta è null interrompo lo script | |
if(!$update) { | |
exit; | |
} | |
// assegno alle seguenti variabili il contenuto ricevuto da Telegram |