Exemplo n.º 1
0
async def clear_all_notes(c: TelePyroBot, m: Message):
    getnotes = db.get_all_notes(m.from_user.id)
    if not getnotes:
        await m.edit_text("`There are no notes!`")
        return
    for x in getnotes:
        rmnote = db.rm_note(m.from_user.id, x)
    await m.edit_text("`Cleared All Notes`")
    return
Exemplo n.º 2
0
async def local_notes(c: TelePyroBot, m: Message):

    getnotes = db.get_all_notes(m.from_user.id)
    if not getnotes:
        await m.edit_text("`There are no notes!`")
        return
    rply = "**__Notes:__**\n"
    for x in getnotes:
        if len(rply) >= 1800:
            await m.reply_text(rply)
            rply = "**__Notes:__**\n"
        rply += f"-> `{x}`\n"

    await m.edit_text(rply)