Send Antlytics data to Telegram
Telegram does not support Incoming Webhooks natively, so you need either a Telegram Bot (via a middleware layer) or an automation platform like Zapier, Make, or n8n.
Option A: Via Zapier (easiest)
- Create a Zapier Zap: Webhooks by Zapier → Catch Hook (trigger).
- In Antlytics → Settings → Webhooks → Add webhook, paste the Zapier URL and select your events.
- Add a Telegram → Send Message action step and connect your Telegram bot.
- Map the message text:
📊 {{site_name}} — {{period}} Visitors: {{stats__visitors}} Pageviews: {{stats__pageviews}} Bounce rate: {{stats__bounce_rate}}%
Option B: Via Make (n8n similar)
- In Make, add a Webhooks → Custom webhook trigger. Connect Antlytics to it.
- Add a Telegram Bot → Send a text message module.
- Format the message using Make's fields:
📊 {{1.site_name}} — {{1.period}} Visitors: {{1.stats.visitors}} Pageviews: {{1.stats.pageviews}}
Option C: Direct Telegram Bot (custom code)
If you host your own server, you can receive the Antlytics webhook and forward it to Telegram's Bot API:
// Node.js example
app.post('/webhook', async (req, res) => {
const { site_name, period, stats } = req.body;
const text = `📊 *${site_name}* — ${period}\nVisitors: ${stats.visitors}\nPageviews: ${stats.pageviews}`;
await fetch(
`https://api.telegram.org/bot${process.env.TELEGRAM_TOKEN}/sendMessage`,
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ chat_id: process.env.TELEGRAM_CHAT_ID, text, parse_mode: 'Markdown' }),
}
);
res.sendStatus(200);
});
Your server URL becomes the Antlytics webhook destination.
Need help?
Email support@antlytics.com with your site ID.
Something missing? Get in touch and we will update these docs.