...QUERY_ID_INVALID電報インラインボット私は電報APIを使用してインラインボットに問題がある
私はコードを持っている:
$json = file_get_contents("php://input");
$dados = json_decode($json,true);
$id_query = $dados['inline_query']['id'];
$resultados_inline[] = [
'type' => 'article',
'id' => "1",
'title' => "Test",
'message_text' => "test",
];
$post[] = [
'inline_query_id' => $id_query,
'results' => serialize($resultados_inline),
];
$context_options = array(
'http' => array(
'method' => 'POST',
'header'=> "Content-type: application/x-www-form-urlencoded\r\n"
. "Content-Length: " . strlen($post) . "\r\n",
'content' => $post
)
);
file_get_contents("https://api.telegram.org/bot" . $api_telegram . "/answerInlineQuery",NULL,$context);
をしかし、私は受け取る:
{ "OK": false、 "error_code":400、 "description": "BadRequest:QUERY_ID_INVALID"}
誰かが私を助けることができますか?
おかげ
ありがとうございますが、原因はわかりますか?私は何を修正できますか?これは非常に奇妙です... –