This is a mirror of git.y.gy/firstdorsal/signal-bot-dockerized
Build it yourself
git clone https://git.y.gy/firstdorsal/signal-bot-dockerized .
docker-compose up -d --build
or use the build on hub.docker.com
firstdorsal/signal-bot
Default port is 3000. This can be changed with the enviroment variable PORT
You should map a volume to let the signal-cli configuration persist:
signal-bot:/root/.local/share/signal-cli/data/
Initialize a registration with the signal server either via text or voice verification
curl -X POST localhost:3000/register/init --header "Content-Type: application/json" --data '{"number":"+49someNumber","voice":true}'; echo
Verify the previously initialized registration with the signal server by sending the verification code
curl -X POST localhost:3000/register/verify --header "Content-Type: application/json" --data '{"number":"+49someNumber","verificationCode":someVerificationCode}'; echo
Send a simple text message to one recipient
curl -X POST localhost:3000/send --header "Content-Type: application/json" --data '{"message":"test","number":"+49someNumber","recipient":"+49someRecipientNumber"}'; echo
Ask for new messages for given number
curl -X POST localhost:3000/receive --header "Content-Type: application/json" --data '{"number":"+49someNumber"}'; echo
Contact the signal bot with a raw cursor to do anything the signal-cli can do
curl -X POST localhost:3000/raw --header "Content-Type: application/json" --data '{"raw":"-u +49someNumber receive"}'; echo
use
FROM adoptopenjdk/openjdk11:armv7l-debianslim-jdk11u-nightly-slim
in the first line of the dockerfile
Feel free to contact me via [email protected] in english or german