check webhook

This commit is contained in:
mercury
2024-03-07 10:46:55 +04:00
parent 24026d3678
commit cbe0ef8a12
2 changed files with 14 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
require './config.php';
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => "https://api.telegram.org/bot{$c['key']}/getWebhookInfo",
CURLOPT_RETURNTRANSFER => true,
]);
$res = curl_exec($ch);
die(var_dump($res));
+2
View File
@@ -56,3 +56,5 @@ c:
git add config/
git checkout .
git reset
webhook:
docker compose exec php php checkwebhook.php