diff --git a/main.py b/main.py index 1e8ca24..dc2cb8c 100644 --- a/main.py +++ b/main.py @@ -223,7 +223,8 @@ class SignalAPI: yield websocket async def receive_message(self, websocket) -> Result[Message, str]: - return parse_response(Message, await websocket.recv()) + res = await websocket.recv() + return parse_response(Message, res) def send_message(self, message: SendMessageSimple) -> Result[SendMessageResponse, str]: data = message.model_dump()