From dee545a6facb79affa3d3f10703dd3d87e65fab2 Mon Sep 17 00:00:00 2001 From: lemoer Date: Sat, 28 Dec 2024 02:19:17 +0100 Subject: [PATCH] main: make receive_message easier to debug --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()