avijit
I Have setup This PHP Script Which Act Like A Lark/Feishu.
Only Thing You Have To Do Is Host This Somewhere Else And, Add That Location link To AAPanel As "Feishu" Url.
<?php
// Set the response content type to JSON
header("Content-Type: application/json");
// Read the raw POST data
$rawPostData = file_get_contents("php://input");
// Decode the JSON data
$data = json_decode($rawPostData, true);
// Check if the required fields are present in the request
if (isset($data["msg_type"]) && isset($data["content"]["text"])) {
// Create the response array
//------------------------------------------
//You Can Use This Receiving Alert Message
$message = $data["content"]["text"];
//------------------------------------------
$response = [
"StatusCode" => 0,
"StatusMessage" => "success",
"code" => 0,
"data" => new stdClass(),
"msg" => "success",
];
} else {
// Create an error response if the expected fields are not present
$response = [
"code" => 9499,
"msg" => "Bad Request",
"data" => new stdClass(),
];
}
// Encode the response array to JSON
echo json_encode($response);
?>