async def clear_note(_, message): status_message = await message.reply_text("checking 🤔🙄🙄", quote=True) note_name = " ".join(message.command[1:]) sql.rm_note(message.chat.id, note_name) await status_message.edit_text( f"note <u>{note_name}</u> deleted from current chat.")
async def clear_note(_, message): is_admin = await admin_check(message) if not is_admin: return status_message = await message.reply_text("checking 🤔🙄🙄", quote=True) note_name = " ".join(message.command[1:]) sql.rm_note(message.chat.id, note_name) await status_message.edit_text( f"note <u>{note_name}</u> deleted from current chat.")