Add to Telegram
Add the bot to your Telegram group
Landing Page
Features overview and pricing
Self-Host
Clone and deploy on your own infrastructure
Installation
Hosted bot (recommended)
Click Add to Telegram above or search for@tuteliq_guardian_bot in Telegram, then add the bot to your group. No code required — configure everything with bot commands.
The bot needs the following group permissions:
- Delete Messages
- Restrict Members
Self-host
Quick start
1
Add the bot to your group
Open the bot profile, tap Add to Group, and select the group you want to protect. Grant it admin permissions (Delete Messages and Restrict Members).
2
Configure your API key
Run
/setup in the group. The bot will ask you to open a DM and send your Tuteliq API key there (starts with tq_). This keeps your key private. The key is encrypted at rest with AES-256.3
Verify the setup
Run
/status in the group to confirm the bot is active and view your current configuration.How it works
Messages in the group flow through a multi-stage pipeline:- Crisis keywords — Messages containing crisis phrases (e.g. self-harm, exploitation) trigger an immediate API call for instant analysis.
- Grooming buffer — Messages are accumulated per group. When the buffer has enough context from multiple senders, a conversation analysis is sent for grooming detection.
- Batch queue — All other messages are batched and sent to the Tuteliq API for efficient bullying and unsafe content detection.
- Alert — When a risk score exceeds your sensitivity threshold, an alert is sent as a DM to the group admin with severity, risk score, message excerpt, and recommended action.
- Act — Admins take action directly from the alert using inline buttons.
Alerts are sent as direct messages to the admin who configured the bot, keeping moderation activity private from the group.
Bot commands
All commands require group admin permissions. Most commands only work inside groups, not in DMs.Alert actions
When a threat is detected, the admin DM includes inline buttons:Sensitivity levels
Set the level with
/sensitivity <level>.
Deployment modes
The Telegram bot supports two transport modes:
Webhook mode is recommended for production as it is more efficient and scales better.
Self-hosting
Requirements
- Node.js 20+
- Telegram bot token from @BotFather
- Tuteliq API key
- Firebase project with Firestore enabled
- Firebase service account key (JSON)
Environment variables
Docker
Cloud Run
Cloud Run deployment uses 256 MiB memory, 1 CPU, and scales to zero when idle.
Health check
The bot exposes a health endpoint atGET /health on the configured port (default 8080). It returns 200 with status, transport mode, and bot state:
Next steps
API Reference
Explore the full API specification.
Slack Integration
See the Slack integration for workspace chat protection.