diff --git a/signalbot/message.py b/signalbot/message.py index e3719a7..5f30ee2 100644 --- a/signalbot/message.py +++ b/signalbot/message.py @@ -1,5 +1,6 @@ import json from enum import Enum +from typing import Optional from signalbot.api import SignalAPI @@ -91,6 +92,7 @@ async def parse(cls, signal: SignalAPI, raw_message: str): raw_message["envelope"]["syncMessage"]["sentMessage"] ) base64_attachments = None + attachments_filenames = None # Option 2: dataMessage elif "dataMessage" in raw_message["envelope"]: