Tutorial

How to Get Telegram Bot API Token

In this tutorial, we will look at a quick way to create a bot on Telegram. Telegram bots are commonly used with SiteGuarding security extensions to deliver real-time notifications about malware detection, security alerts, and website monitoring events directly to your device. For more detailed information, you can visit the official Telegram Bot documentation.

Set Up Your Telegram Bot

You don't have to write any code for this. Actually, you don't even have to use your computer! Just go to the Telegram app on your device and complete these 4 simple steps:

1

Find the BotFather

Find the Telegram bot named "@BotFather" — he will help you with creating and managing your bot. BotFather is the official Telegram bot for creating and configuring new bots. Simply search for "BotFather" in the Telegram search bar and select the verified account with the blue checkmark.

Find BotFather in Telegram to create a new bot
2

View Available Commands

Type "/help" and you will see all possible commands that the BotFather can operate. This gives you an overview of everything you can do — from creating and deleting bots to setting descriptions, profile pictures, and inline mode.

BotFather help command showing all available options
3

Create a New Bot

To create a new bot, type "/newbot" or click on it. Follow the instructions BotFather provides and create a new name for your bot. If you are making a bot only for experimentation, keep in mind that the username has to be unique — you can namespace your bot by placing your name before it in its username. By the way, the bot's screen name (display name) can be anything you like.

Creating a new Telegram bot with BotFather - naming and username

Tip: For security notification bots, use a descriptive name like "MySite Security Alerts" so you can easily identify the source of notifications on your phone.

4

Get Your API Token

Congratulations! You've just created your Telegram bot. You will see a new API token generated for it. In the example above, it looks like this:

270485614:AAHfiqksKZ8WmR2zSjiQ7_v4TMAKdiHm9T0

Copy your API token to the plugin. Paste this token into the corresponding field in your SiteGuarding extension or security dashboard settings to enable Telegram notifications for your website.

Security Warning: Keep your API token private. Anyone with access to your bot token can control your bot and send messages through it. Never share it publicly or commit it to version control. If your token is compromised, use the /revoke command in BotFather to generate a new one immediately.

Development Services

Need a Custom Telegram Bot
or Integration for Your Website?

Our experienced developers can build, customize, and integrate Telegram bots tailored to your business needs — from simple notification bots to complex automation systems and website integrations.

Custom Bot Development We build Telegram bots from scratch — order bots, support chatbots, notification systems, and more
Website Integration Connect your Telegram bot with your CMS, e-commerce store, CRM, or any web application seamlessly
Security Alert Bots Automated alerts for malware detection, login attempts, file changes, uptime monitoring, and backups
Bot Customization & Upgrades Modify existing bots — add new commands, inline keyboards, payment integration, or webhook setup
Telegram Bot API & Automation Build automated workflows: scheduled messages, data collection, user management, and third-party APIs
Maintenance & Support Ongoing technical support, bug fixes, server configuration, and performance optimization for your bots
Get a Free Consultation

Why Use Telegram for Security Notifications

Telegram bots provide instant, reliable notifications that are critical for maintaining real-time awareness of your website's security status.

Instant Alerts

Receive real-time push notifications on your phone or desktop the moment a security threat is detected — including malware detection, unauthorized logins, file changes, and blacklist warnings.

Secure Channel

Telegram uses end-to-end encryption and secure protocols, making it a reliable and private channel for receiving sensitive security monitoring alerts about your website infrastructure.

Multi-Device Access

Access your security notifications from any device — mobile phone, tablet, or desktop. Telegram works across all platforms, ensuring you never miss a critical alert about your website's security.

SiteGuarding Extensions with Telegram Support

Many of our security extensions support Telegram bot notifications. Connect your bot to receive alerts from these tools.

Website Antivirus

Get notified instantly when the antivirus scanner detects malware, trojans, backdoors, or suspicious files on your website. Ideal for proactive malware removal and advanced web protection.

Admin Access Notification

Receive alerts every time someone logs into your website's admin panel. Monitor unauthorized access attempts and protect against brute-force attacks as part of your enterprise website security strategy.

Blacklist Monitor

Get immediate notifications if your website is blacklisted by Google, McAfee, Norton, or any other security service, allowing you to respond quickly and initiate blacklist removal.

Frequently Asked Questions

Common questions about Telegram bot setup and integration with SiteGuarding.

Is it free to create a Telegram bot?

Yes, creating a Telegram bot is completely free. Telegram's Bot API is open and available to all users at no cost. You can create as many bots as you need using BotFather.

Where do I paste the API token?

Paste the API token into the Telegram notification settings of your SiteGuarding extension or plugin. For example, in the WordPress Antivirus plugin, navigate to Settings → Notifications → Telegram and paste your token there. The exact location varies by extension, but it's always in the notification or alerts configuration section.

What if my API token is compromised?

If your token is leaked or compromised, open BotFather in Telegram, use the /mybots command to select your bot, then use the API Token → Revoke current token option. BotFather will generate a new token. Make sure to update the new token in all your SiteGuarding plugins and extensions.

Can I use one bot for multiple websites?

Yes, you can use the same Telegram bot and API token across multiple websites. All notifications will arrive in the same Telegram chat. However, for better organization, you may prefer creating separate bots for each website so you can easily distinguish which alerts belong to which site.

Do I also need a Chat ID?

Some SiteGuarding extensions may also require your Telegram Chat ID in addition to the bot token. To get your Chat ID, start a conversation with your bot, then visit https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates in a browser. Your Chat ID will appear in the response. The exact process depends on the plugin you are configuring.

Need Help Setting Up Security Notifications?

Our team can help you configure Telegram bot notifications for your website security extensions and set up comprehensive monitoring for your online assets.

Trusted Since 2008
Real-Time Alerts
24/7 Monitoring
Free Bot Setup
Live Chat Support
Our website uses cookies, which help us to improve our site and enables us to deliver the best possible service and customer experience. See our policy Accept