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(); }