Ejemplo n.º 1
0
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.")
Ejemplo n.º 2
0
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.")