404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.139.60.67: ~ $
<?php
// ini_set('error_reporting',8191);
// ini_set('display_errors',1);
header('Content-Type: application/json');
$update = json_decode(file_get_contents('php://input'),true);
include "../loader.php";

$BOT_USER= '@TranslateGerman3_bot';
$BOT_TOKEN= '816983194:AAH1pPCba__pNRFK7h6fFMoy-9twUuxJ-n8';
$uriParts = explode("?",$_SERVER['REQUEST_URI']);
$actual_link = "https://$_SERVER[HTTP_HOST]".$uriParts[0];
$WEBHOOK_URL= $actual_link;
$SIGN ="پوشش خبری شهر های آلمان ".PHP_EOL."@TranslateService";

$translate_bot = new TranslateService($BOT_USER,$BOT_TOKEN,$WEBHOOK_URL, $SIGN);
$telegramUpdate = $update["originalDetectIntentRequest"]["payload"];
$translate_bot->process ( $telegramUpdate );
$action = $update['queryResult']['action'];
if (isset($update["queryResult"]["action"])) {
    processMessage($update,$telegramUpdate);
}

function processMessage($update,$telegramUpdate) {
    if($update["queryResult"]["queryText"] == "good"){
        sendMessage(array(
            "source" => $update["queryResult"]["action"],
            "speech" => "Hello from webhook",
            "fulfillmentText" => "Hello from webhook is good",
            "contextOut" => array()
        ));
    }
    if($update["queryResult"]["queryText"] == "hi"){
        sendMessage(array(
            "source" => $update["result"]["source"],
            "speech" => "Hello from webhook",
            "fulfillmentText" => var_export($telegramUpdate,true),
            "contextOut" => array()
        ));
    }
}

function sendMessage($parameters) {
    echo json_encode($parameters);
}
?>

Filemanager

Name Type Size Permission Actions
igoogle.php File 1.59 KB 0644
test_trgerman.php File 2.7 KB 0644
trgerman1.php File 3.19 KB 0644
trgerman2.php File 5.15 KB 0644
trgerman3.php File 4.57 KB 0644