Sign inSign up

containerize/notifier

By containerize

•Updated about 8 years ago

Telegram bot notifier

Image
0

416

containerize/notifier repository overview

⁠Telegram bot notifier

⁠Quick Start

  1. Edit docker-compose.yml
version: "3"

services:
    notifier:
        image: containerize/notifier
        environment:
            # debug mode
            - NOTIFIER_DEBUG=false
            # server port
            - NOTIFIER_PORT=8080
            # telegram bot token
            - NOTIFIER_BOTTOKEN=<telegram bot token>
            # telegram send message parse mode
            - NOTIFIER_PARSEMODE=<Markdown (default) / HTML / >
            # enable send message to admin
            - NOTIFIER_ENABLEADMIN=true
            # admin ids(split with ,)
            - NOTIFIER_ADMINS=<telegram user 1 id,telegram user 2 id>
            # group ids(split with ,)
            - NOTIFIER_GROUPS=<telegram group 1 id,telegram group 2 id>
            # timezone
            - TZ=Asia/Macau
        ports:
            - 20001:8080
  1. Run docker-compose up -d
  2. Test
curl -X "POST" "http://localhost:20001/send" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "message": "test123"
}'

Tag summary

Content type

Image

Digest

Size

7.5 MB

Last updated

about 8 years ago

docker pull containerize/notifier