Back to Articles Quick Start

Getting Started with Telegram Notifications in 5 Minutes

Julio Andres February 15, 2026 4 min read Telegram · Quick Start

Telegram is one of the best channels for developer alerts. It's fast, it works on every device, it has a great API, and — unlike email — people actually read their messages. This guide walks you through connecting your software to Telegram via NotificationsBot, from creating your account to sending your first real notification.

No prior experience with the Telegram Bot API is required. No tokens to manage, no webhook servers to set up. NotificationsBot handles all of that for you.

STEP 1 Create account
STEP 2 Create a channel
STEP 3 Add subscriber
STEP 4 Get API key
STEP 5 Send first alert
5 min
Total setup time
0
SDKs or libraries required
< 2s
Telegram delivery time

1 Create Your NotificationsBot Account

Head to app.notificationsbot.com and sign up with your email or Google account. The free plan gives you 100 notifications per month — more than enough to get started and integrate alerts into your workflow before deciding if you need more.

No credit card required. Your account is ready to use the moment you verify your email.

2 Create a Channel

A channel in NotificationsBot is a named destination for your notifications. Think of it as a topic or category — for example errors, deployments, or payments. Each channel can have multiple subscribers on different platforms.

From the dashboard, go to Channels → New Channel, give it a name (e.g., my-app-alerts), and save. That's your channel created.

Channel naming tip

Use lowercase, hyphen-separated names that reflect the type of events you'll send — production-errors, stripe-events, health-alerts. This makes it easier to organize as your integration grows.

3 Add a Telegram Subscriber

This is where the magic happens. A subscriber is a person (or a group) that receives notifications from a channel. To add yourself as a Telegram subscriber:

Once the subscriber is linked, any notification sent to that channel will arrive in your Telegram immediately. You can add as many subscribers as you need — colleagues, team channels, different devices.

Adding a team

You can also add a Telegram group as a subscriber, so notifications go to a shared team chat instead of a single person. Just add the NotificationsBot Telegram bot to your group and use the group's subscriber link.

4 Get Your API Key

Your API key is what authenticates your application when it calls the NotificationsBot API. Go to Settings → API Keys in the dashboard and create a new key. Copy it somewhere safe — treat it like a password.

Store it in an environment variable in your application:

Environment variable
# .env (never commit this file)
NOTIFICATIONSBOT_API_KEY=nbk_your_key_here

5 Send Your First Notification

With your channel created, your Telegram subscriber linked, and your API key ready, you can now send your first notification. It's a single HTTP POST request:

cURL
curl -s -X POST https://api.notificationsbot.com/event \
  -H "Authorization: Bearer $NOTIFICATIONSBOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "my-app-alerts",
    "title": "👋 Hello from my app!",
    "message": "Your first real-time Telegram notification is working."
  }'

Run that command and within two seconds you'll see the notification arrive in your Telegram. If you don't, double-check that your subscriber completed the bot onboarding and is assigned to the channel.

Integrating into Your Code

Once you've verified the notification arrives, drop the same call into your application code. Here are examples for the most common stacks:

Python
import os, requests

def notify(title: str, message: str, channel: str = "my-app-alerts"):
    requests.post(
        "https://api.notificationsbot.com/event",
        headers={"Authorization": f"Bearer {os.environ['NOTIFICATIONSBOT_API_KEY']}"},
        json={"channel": channel, "title": title, "message": message},
        timeout=5,
    )

# Usage anywhere in your app
notify("✅ Order processed", f"Order #42 — $99.00")
Node.js / TypeScript
// notify.ts
export async function notify(title: string, message: string) {
  await fetch("https://api.notificationsbot.com/event", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${process.env.NOTIFICATIONSBOT_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      channel: "my-app-alerts",
      title,
      message,
    }),
  });
}

// Usage
await notify("🚨 Server error", "NullPointerException in checkout flow");
PHP
// notify.php
function notify(string $title, string $message): void {
    $ch = curl_init('https://api.notificationsbot.com/event');
    curl_setopt_array($ch, [
        CURLOPT_POST           => true,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER     => [
            'Authorization: Bearer ' . $_ENV['NOTIFICATIONSBOT_API_KEY'],
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => json_encode([
            'channel' => 'my-app-alerts',
            'title'   => $title,
            'message' => $message,
        ]),
    ]);
    curl_exec($ch);
    curl_close($ch);
}

// Usage
notify('✅ Backup complete', 'Database backup finished — 2.3 GB');

What to Build Next

Now that Telegram notifications are working, here are the most useful things to add:

You're already done

If you followed this guide start to finish, you spent less than 5 minutes and your software can now talk to your Telegram. That's all it takes. From here, every alert you add is just one function call.

Ready to Send Your First Alert?

Create your free account and have Telegram notifications working in under 5 minutes. No credit card, no setup complexity.

Start for free