forked from LeineLab-Public/lab-signal-bot
main: make receive_message easier to debug
This commit is contained in:
parent
db7a98aa21
commit
dee545a6fa
3
main.py
3
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()
|
||||
|
Loading…
Reference in New Issue
Block a user