A small Telegram bot for surfacing Sanctifier runtime-guard events with severity and contract-address filters.
/latestshows the newest events/severity HIGHfilters by severity/contract <address>filters by contract address/watch HIGH <address>combines both filters
- Create a Telegram bot with @BotFather.
- Export your token:
export TELEGRAM_BOT_TOKEN="123456:abc..."- Optionally point the bot at a local event cache:
export SANCTIFIER_EVENTS_FILE="./events.json"- Install dependencies and run the bot:
cd integrations/telegram
python3 -m pip install -r requirements.txt
python3 bot.pyThe bot expects a JSON array of objects with these fields:
[
{
"id": "evt-001",
"severity": "HIGH",
"contract_address": "C...",
"summary": "Human readable event summary",
"timestamp": "2026-05-29T10:00:00Z"
}
]If SANCTIFIER_EVENTS_FILE is missing, the bot uses the built-in sample events so you can validate the command flow immediately.