tes log data notes lama

This commit is contained in:
Yasir Aris M 2023-11-23 10:50:49 +07:00 committed by GitHub
parent 8475225d68
commit 61c742c369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,11 +138,12 @@ async def get_notes(_, message):
@app.on_message(filters.regex(r"^#.+") & filters.text & ~filters.private)
@capture_err
async def get_one_note(_, message):
async def get_one_note(self, message):
name = message.text.replace("#", "", 1)
if not name:
return
_note = await get_note(message.chat.id, name)
self.log.info(_note)
if not _note:
return
type = _note["type"]