From a86192836fd67bf969c673a885def75d0bd13095 Mon Sep 17 00:00:00 2001 From: Who? <155328415+coddrago@users.noreply.github.com> Date: Tue, 4 Mar 2025 13:16:28 +0700 Subject: [PATCH] Update security.py --- hikka/security.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hikka/security.py b/hikka/security.py index 5b9ff23..d151080 100644 --- a/hikka/security.py +++ b/hikka/security.py @@ -390,9 +390,9 @@ class SecurityManager: if not (config := self.get_flags(func)): return False - if not user_id and isinstance((await c.get_entity(message.peer_id)), tl.types.User): + if not user_id and isinstance((await self.client.get_entity(message.peer_id)), tl.types.User): user_id = message.sender_id - if not user_id and isinstance((await c.get_entity(message.peer_id)), tl.types.Channel): + if not user_id and isinstance((await self.client.get_entity(message.peer_id)), tl.types.Channel): user_id = message.peer_id is_channel = False