0
我正在实现我的机器人电报与游戏。 我写了这个:电报机器人游戏不工作
$content = file_get_contents("php://input");
$update = json_decode($content, true);
if(!$update)
{
exit;
}
$chatId = isset($message['chat']['id']) ? $message['chat']['id'] : "";
header("Content-Type: application/json");
$parameters = array('chat_id' => $chatId);
$parameters["method"] = "sendGame";
$parameters["game_short_name"] = "prova";
$parameters["text"] = parse_url("<my_html_5_url>");
$message = json_encode($parameters);
echo json_encode($parameters);
我的样本HTML5代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
Content of the document......
</body>
</html>
当我打电话的比赛中,我只看到Botfather插入图像,但我没有机会看到我的HTML5。我错在哪里?以这种方式