From 8bd46d253c6f92bcc87e6cc5b1556366b280584b Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Tue, 4 Jul 2023 11:04:00 +0700 Subject: [PATCH] lupaa --- misskaty/core/misskaty_patch/decorators/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misskaty/core/misskaty_patch/decorators/command.py b/misskaty/core/misskaty_patch/decorators/command.py index fa27ff99..f9d32a5c 100644 --- a/misskaty/core/misskaty_patch/decorators/command.py +++ b/misskaty/core/misskaty_patch/decorators/command.py @@ -81,7 +81,7 @@ def command( async def decorator(client, message: pyrogram.types.Message): if is_disabled: return await message.reply_text("Sorry, this command has been disabled by owner.") - if no_channel: + if not message.from_user: return await message.reply_text("I'm cannot identify user. Use my command in private chat.") if ( self_admin