Sign inSign up

gjames8/telegram-notifier

By gjames8

Updated 9 months ago

A simple, self-hosted REST server for Raspberry Pi that sends Telegram notifications.

Image
Developer tools
Monitoring & observability
0

1.7K

gjames8/telegram-notifier repository overview

telegram-notifier

A simple, self-hosted REST server for Raspberry Pi that sends Telegram notifications.

How to use

Docker compose
services:
  telegram:
  container_name: telegram_notifier
  image: gjames8/telegram-notifier:latest
  restart: unless-stopped
  ports:
    - "8080:8080"
  volumes:
    - ./telegram:/usr/src/app/data
Create config

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
  }
}
Run

docker compose up -d

Send message
 curl -X POST http://localhost:8080/send \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello from POST body!"}'

Features

  • Fast
  • Extreamly Lightweight (Under 2MB!)
  • Quick Setup

Tag summary

Content type

Image

Digest

sha256:08e01684e

Size

2 MB

Last updated

9 months ago

docker pull gjames8/telegram-notifier