diff --git a/misskaty/plugins/notes.py b/misskaty/plugins/notes.py index 484cfd0c..b1561dd3 100644 --- a/misskaty/plugins/notes.py +++ b/misskaty/plugins/notes.py @@ -163,7 +163,7 @@ async def get_one_note(_, message): _note = await get_note(chat_id, name) if not _note: return - type = _note("type") + type = _note.get("type") data = _note.get("data") file_id = _note.get("file_id") keyb = None