A simple, self-hosted REST server for Raspberry Pi that sends Telegram notifications.
1.7K
A simple, self-hosted REST server for Raspberry Pi that sends Telegram notifications.
services:
telegram:
container_name: telegram_notifier
image: gjames8/telegram-notifier:latest
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./telegram:/usr/src/app/data
In the same directory as your Compose file, create a new folder named telegram and create a config.json file with the following contents:
{
"key": "Telegram API KEY from BotFather",
"chatid": "Telegram ChatID",
"RabbitMQ": {
"Host": "127.0.0.1",
"Port": 5672,
"Username": "guest",
"Password": "guest",
"UseRabbitMQ": false
}
}
docker compose up -d
curl -X POST http://localhost:8080/send \
-H "Content-Type: application/json" \
-d '{"message": "Hello from POST body!"}'
Content type
Image
Digest
sha256:08e01684e…
Size
2 MB
Last updated
9 months ago
docker pull gjames8/telegram-notifier