function SendMessage($chat_id, $text, $mode){ bot('sendMessage',[ 'chat_id'=>$chat_id, 'text'=>$text, 'parse_mode'=>$mode ]); } $update = json_decode(file_get_contents('php://input')); $chat_id = $update->message->chat->id; $text =...