Skip to content

trckster/notte

Repository files navigation

About

If you want to send notifications from your application to yourself in Telegram, you can use Notte.

img.png

Usage

Generate token in @nottefication_bot and send any message using token as bearer auth:

curl https://notte.daniil.online/api/log \
    -H 'Content-type: application/json' \
    -H 'Authorization: Bearer {token-from-bot}' \
    -d '{ "data": "Test message" }'

Development

In order to run the project, you should follow these steps:

  1. Install & run ngrok: ngrok http 8000
  2. Fill environment variables:
    • cp .env.example .env
    • Generate bot token via @BotFather and set TELEGRAM_BOT_TOKEN variable
    • Copy url from ngrok and set APP_URL
  3. Launch project: docker compose up --build