AsamK / signal-cli

signal-cli provides an unofficial commandline, JSON-RPC and dbus interface for the Signal messenger.
GNU General Public License v3.0
3.22k stars 306 forks source link

dbus: method sendMessage does not exist? #1462

Closed joed74 closed 9 months ago

joed74 commented 9 months ago

Nearly the same as #420 (but with signal-cli 0.12.8)

I have array:string: on it and that's what i get:

dbus-send --system --type=method_call --print-reply --dest="org.asamk.Signal" /org/asamk/Signal org.asamk.Signal.sendMessage string:MessageText array:string: string:+[mynumber]
Error org.freedesktop.dbus.errors.UnknownMethod: The method `org.asamk.Signal.sendMessage' does not exist on this object.
joed74 commented 9 months ago

signal-cli --dbus-system send -m "Test" +[mynumber] works, but no chance with dbus-send (and python)

AsamK commented 9 months ago

You're probably running signal-cli in multi account mode. You either need to add the account phone number to the path /org/asamk/Signal/_PHONE_NUMBER or start the daemon in single account mode signal-cli -a +PHONE_NUMBER daemon --dbus-system.