diff --git a/app/checkwebhook.php b/app/checkwebhook.php new file mode 100644 index 0000000..5d6b55d --- /dev/null +++ b/app/checkwebhook.php @@ -0,0 +1,11 @@ + "https://api.telegram.org/bot{$c['key']}/getWebhookInfo", + CURLOPT_RETURNTRANSFER => true, +]); +$res = curl_exec($ch); +die(var_dump($res)); diff --git a/makefile b/makefile index dee6458..57ea9aa 100644 --- a/makefile +++ b/makefile @@ -55,4 +55,6 @@ s: c: git add config/ git checkout . - git reset \ No newline at end of file + git reset +webhook: + docker compose exec php php checkwebhook.php \ No newline at end of file