From dc8990ba6f291fc92f6ce0213e6a27ec52cd0590 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 1 Jul 2018 19:29:22 +0530 Subject: [PATCH] Add check to work only in our group. --- webhook.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webhook.php b/webhook.php index 8d0630a..e740056 100644 --- a/webhook.php +++ b/webhook.php @@ -140,6 +140,10 @@ $decoded = json_decode($var); // Store the chat ID $chat_id = $decoded->{"message"}->{"chat"}->{"id"}; +if ($chat_id != -1001279314046){ + exit(); +} + $modules = array( array( "command" => "/deposit",