Update dev.py

This commit is contained in:
yasirarism 2023-02-13 13:36:40 +07:00 committed by GitHub
parent 3fec0cd8e3
commit 5cf283cf80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ async def shell(_, m):
parse_mode=enums.ParseMode.HTML,
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="❌ Close", callback_data=f"close#{m.from_user.id}")]]),
)
if not await m.from_user.is_self:
if not m.from_user.is_self:
await msg.delete()
else:
await m.reply("No Reply")
@ -164,7 +164,7 @@ async def evaluation_cmd_t(_, m):
parse_mode=enums.ParseMode.MARKDOWN,
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="❌ Close", callback_data=f"close#{m.from_user.id}")]]),
)
if not await m.from_user.is_self:
if not m.from_user.is_self:
await status_message.delete()
# Update and restart bot