no message
This commit is contained in:
parent
ab8a2c2d8d
commit
5c7fc5d44f
@ -31,7 +31,7 @@ final class TestController extends BaseController
|
||||
}
|
||||
|
||||
|
||||
$url = 'https://fuuu.cloud/api/tg/hook';
|
||||
$url = 'https://fuc.loc/api/tg/hook';
|
||||
$data = [
|
||||
'message' => [
|
||||
'chat' => [
|
||||
@ -42,7 +42,7 @@ final class TestController extends BaseController
|
||||
];
|
||||
|
||||
$options = [
|
||||
'https' => [
|
||||
'http' => [
|
||||
'header' => "Content-Type: application/json\r\n",
|
||||
'method' => 'POST',
|
||||
'content' => json_encode($data),
|
||||
|
||||
@ -22,10 +22,10 @@ final class HookController
|
||||
public function cmd()
|
||||
{
|
||||
$this->sApiToken = Config::obtain('telegram_token');
|
||||
$this->sApiChatId = Config::obtain('telegram_chatid')
|
||||
$this->sApiChatId = Config::obtain('telegram_chatid');
|
||||
|
||||
// 获取更新
|
||||
//$update = json_decode(file_get_contents("php://input"), true);
|
||||
@$update = json_decode(file_get_contents("php://input"), true);
|
||||
|
||||
$update = [
|
||||
'message' => [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user