X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/f0d9a33d9a3a3c0031c0734f607da64002e7422e..b18991b9fb3a68b8a3f4bd16a160ead90b4990a9:/man/signal-cli-dbus.5.adoc diff --git a/man/signal-cli-dbus.5.adoc b/man/signal-cli-dbus.5.adoc index 5d3d214c..a475eadc 100644 --- a/man/signal-cli-dbus.5.adoc +++ b/man/signal-cli-dbus.5.adoc @@ -8,7 +8,7 @@ vim:set ts=4 sw=4 tw=82 noet: == Name -DBus API for signal-cli - A commandline and dbus interface for the Signal messenger +signal-cli-dbus - A commandline and dbus interface for the Signal messenger == Synopsis @@ -64,15 +64,12 @@ link(newDeviceName) -> deviceLinkUri:: Returns a URI of the form "sgnl://linkdevice?uuid=...". This can be piped to a QR encoder to create a display that can be captured by a Signal smartphone client. -For example: -[source] +For example: ----- +``` dbus-send --session --dest=org.asamk.Signal --type=method_call --print-reply /org/asamk/Signal org.asamk.Signal.link string:"My secondary client" | tr '\n' '\0' | sed 's/.*string //g' | sed 's/\"//g' | qrencode -s10 -tANSI256 ----- - -Exceptions: Failure +``` listAccounts() -> accountList:: * accountList : Array of all attached accounts in DBus object path form @@ -237,9 +234,9 @@ Exceptions: Failure, InvalidNumber sendTyping(recipient, stop) -> <>:: * recipient : Phone number of a single recipient -* targetSentTimestamp : True, if typing state should be stopped +* stop : True, if typing state should be stopped -Exceptions: Failure, GroupNotFound, UntrustedIdentity +Exceptions: Failure, UntrustedIdentity setContactBlocked(number, block) -> <>:: * number : Phone number affected by method @@ -353,6 +350,12 @@ sendGroupMessage(message, attachments, groupId) -> timestamp:: Exceptions: GroupNotFound, Failure, AttachmentInvalid, InvalidGroupId +sendGroupTyping(groupId, stop) -> <>:: +* groupId : Byte array representing the internal group identifier +* stop : True, if typing state should be stopped + +Exceptions: Failure, GroupNotFound, UntrustedIdentity + sendGroupMessageReaction(emoji, remove, targetAuthor, targetSentTimestamp, groupId) -> timestamp:: * emoji : Unicode grapheme cluster of the emoji * remove : Boolean, whether a previously sent reaction (emoji) should be removed