-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to send group messages via dbus-send? #272
Comments
Sending to a group can be done with a similar command:
where the byte array at the end is the groupId in the bytes form. It can be obtained from the list of groupIds:
Note: when daemon was started without explicit To get the group name corresponding to a groupId, run
Alternatively, the groupId byte array can be obtained from the base64-encoded groupId that looks like
|
One dbus quirk here: it takes bytearrays as input (for
|
Thank you for the detailed explanation! Stay healthy :) |
Note that If you don't do this, you will get error:
|
Thanks for the comment! I've added a note to my post above. |
Can somebody explain how to send group messages via dbus-send?
This works great for sending to a single recipient:
dbus-send --session --type=method_call --print-reply --dest="org.asamk.Signal" /org/asamk/Signal org.asamk.Signal.sendMessage string:MessageText array:string: string:RECIPIENT
I found
void sendGroupMessage
in Signal.java, but I'm not sure how to pass that group ID to dbus-send.Thank you!
The text was updated successfully, but these errors were encountered: