diff --git a/signal_webhook/signal.py b/signal_webhook/signal.py index c2a852c..9bfef32 100644 --- a/signal_webhook/signal.py +++ b/signal_webhook/signal.py @@ -11,7 +11,7 @@ def signal_send(recipients: list[str], message: str) -> None: def to_dest(recipient: str) -> dict[str, str]: if recipient.startswith("G:"): return {"groupId": recipient[2:]} - return {"userId": recipient} + return {"recipient": [recipient]} with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as signal_json: signal_json.connect(configuration.SIGNAL_SOCKET)