Signald: Difference between revisions
imported>Onny Add configuration section |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 54: | Line 54: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Send message to a group | Send message to a group using the account <code>+12025555555</code>. You'll find the group id by generating a group link of an existing group in the settings section, for example on your mobile phone with the Signal app. | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
Line 60: | Line 60: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category: | === Group handling === | ||
Join a chat group with the account <code>+12025555555</code> | |||
<syntaxhighlight lang="console"> | |||
# signaldctl group join -a +12025555555 EdSqI90cS0UomDpgUXOlCoObWvQOXlH5G3Z2d3f4ayE= | |||
</syntaxhighlight> | |||
== Troubleshooting == | |||
=== Registration fails with "error registering with server" === | |||
This registration error might be related to an [https://gitlab.com/signald/signald/-/issues/372 open bug] in Signald. As an alternative, it is possible to use the client <code>signal-cli</code> to register and verify a new phone number and use Signald as a secondary "device" by linking it | |||
<syntaxhighlight lang="console"> | |||
# nix-shell -p nixos.signal-cli | |||
# Register account with the phone number +12025555555. You'll most likley need to generate a captcha and specify it with a parameter. See registration section above on how to do this. | |||
# signal-cli -a "+12025555555" register --captcha "abcd" | |||
Enter the verification number received via SMS | |||
# signal-cli -a "+12025555555" verify "1234" | |||
Generate the device uri in Signald to link the existing account | |||
# signaldctl account link --output-format json | |||
Use the uri generated above in the following command | |||
# signal-cli -a "+12025555555" addDevice --uri "abcd" | |||
</syntaxhighlight> | |||
Now Signald is able to use the phone number <code>+12025555555</code>, registered with signal-cli, as a secondary device. | |||
== Tips and tricks == | |||
=== Python chat bot === | |||
The Python module [https://github.com/lwesterhof/semaphore semaphore] can be used to interact with your Signald account and to create simple chat bots. | |||
[[Category:Applications]] |