0
电报API say:如何在发送Webhook答案的同时对电报Bot API执行请求?
如果您正在使用网络挂接,可以同时发送答案的网络挂接进行到机器人API的请求。
我试图通过这个简单的代码来做到这一点:
header('Content-Type: application/x-www-form-urlencoded');
$content = http_build_query(array(
'method' => 'sendMessage',
'chat_id' => 123,
'text' => 'test 123'
));
file_put_contents("php://output", $content); // or echo $content;
,但我看不到机器人任何回应。