Files
intra.noxus.fi/script.js
Jukka Lampikoski 20a2b78782 Make Telegram chat_id per-company, bot token stays global
Each company can now have its own Telegram channel/group for alerts.
- Bot token: global (superadmin only, shared across companies)
- Chat ID: per-company (stored in integrations table config)
- sendTelegramAlert reads chat_id from company integration
- Test message shows company name
- Non-superadmin users can't see/edit bot token

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 19:05:57 +02:00

322 KiB