This commit is contained in:
yasirarism 2023-07-04 11:04:00 +07:00 committed by GitHub
parent 44c59927be
commit 8bd46d253c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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