Antlytics logoAntlytics

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)

  1. Create a Zapier Zap: Webhooks by Zapier → Catch Hook (trigger).
  2. In Antlytics → Settings → Webhooks → Add webhook, paste the Zapier URL and select your events.
  3. Add a Telegram → Send Message action step and connect your Telegram bot.
  4. Map the message text:
    📊 {{site_name}} — {{period}}
    Visitors: {{stats__visitors}}
    Pageviews: {{stats__pageviews}}
    Bounce rate: {{stats__bounce_rate}}%
    

Option B: Via Make (n8n similar)

  1. In Make, add a Webhooks → Custom webhook trigger. Connect Antlytics to it.
  2. Add a Telegram Bot → Send a text message module.
  3. 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.