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.
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.
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:
- Go to Subscribers → New Subscriber in the dashboard
- Enter your name and save — a unique subscriber link is generated for you
- Open that link on your phone or desktop — it launches the NotificationsBot Telegram bot
- Press Start in Telegram to link your Telegram account to your subscriber profile
- Go back to the dashboard, open your channel, and add this 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.
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:
# .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 -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:
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")
// 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");
// 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:
- Error alerts — wrap your most critical code paths and send an alert when something fails
- Deployment notifications — add one line to your CI/CD pipeline so the team knows when a deploy goes out
- URL health monitoring — add your API endpoints in the dashboard and get alerted within 60 seconds of any downtime
- Business events — notify on new signups, payments, cancellations to keep the whole team in the loop
- More subscribers — invite teammates and add them to channels so the right people get the right alerts
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