From d15d4572df572175b89b08292684eabe9cde6bc6 Mon Sep 17 00:00:00 2001 From: Milly Khamroev <58307677+Mirmuxsin@users.noreply.github.com> Date: Sun, 31 Dec 2023 02:45:59 +0500 Subject: [PATCH] Update Handler.php --- src/Types/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Types/Handler.php b/src/Types/Handler.php index e44169f..b6f2eea 100644 --- a/src/Types/Handler.php +++ b/src/Types/Handler.php @@ -54,7 +54,7 @@ public static function get(): array private static function filterUpdate (Request $update) { - if (IpUtils::checkIp($update->ip(), config('laragram.trusted_ips'))) { + if (isset(config('laragram.trusted_ips')) and IpUtils::checkIp($update->ip(), config('laragram.trusted_ips'))) { return $update->all(); }