If you want to send notifications from your application to yourself in Telegram, you can use Notte.
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" }'
In order to run the project, you should follow these steps:
- Install & run ngrok:
ngrok http 8000
- 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
- Launch project:
docker compose up --build