1
この結果でChosenInlineResultを取得するにはどうすればよいですか? : 私はPHPを使用していますし、ここに私の送信結果ページがTELEGRAMBOT ChosenInlineResultの入手方法
$results = array(
array(
"type" => "article",
"id" => "1",
"title" => "aaaa",
"description" => "bbbb",
"input_message_content" => array(
"message_text" => "mt",
"parse_mode" => "HTML"
),"reply_markup" => array('inline_keyboard' => ($keyboardx))
)
);
$data = array(
"inline_query_id" => $qid,
"results" => json_encode($results),
"cache_time" => 0
);
$data_string = json_encode($data);
$ch = curl_init('https://api.telegram.org/'.$token.'/answerInlineQuery');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data_string))
);
$result = curl_exec($ch);
file_put_contents("res.txt",$result,FILE_APPEND);
、ここで私はres.txt