from ubot import * __MODULE__ = "Notes" __HELP__ = """Help For Notes • Command: {0}save [name - reply message] • Explanation: To save a note. • Command: {0}get [name] • Explanation: To retrieve a saved note. • Command: {0}rm [name] • Explanation: To delete a note name. • Command: {0}notes • Explanation: To see a list of saved notes. • Note: To use the button, use the format: Mbah google [google|google.com] """ @PY.UBOT("save", sudo=True) async def _(client, message): await addnote_cmd(client, message) @PY.UBOT("get", sudo=True) async def _(client, message): await get_cmd(client, message) @PY.INLINE("^get_notes") @INLINE.QUERY async def _(client, inline_query): await get_notes_button(client, inline_query) @PY.UBOT("rm", sudo=True) async def _(client, message): await delnote_cmd(client, message) @PY.UBOT("notes", sudo=True) async def _(client, message): await notes_cmd(client, message)