Broadcast Bot#
You can find the code of our Broadcast implementation here.
This bot is a very simple implementation and might be modified to feat your requirements.
This bot simply expose a POST webhook entrypoint and send the request content to every contact / group.
Setup#
Start your daemon (see 🚀 Quickstart if necessary) and export your client key to environment (see Setup client key).
Clone our Quickstart repository.
git clone https://github.com/olvid-io/Olvid-Bot-Quickstart quickstart
cd quickstart/examples/bot_broadcast
python3 main.py
Broadcast a message using curl (or any other http tool).
curl -X POST --data "Hello Olvid !" http://localhost:8080