Getting Started¶
So, you want to build a Telegram bot. But you probably don't want to rent a virtual server, figure out SSL certificates, or explain to your friends why a simple "hello world" bot needs a database and Docker setup.
Good news: you don't have to. That is exactly why TeleBotHost exists.
This guide will take you from absolute zero to a live, working bot in under five minutes. No coding required for your very first command.
1. Create a Bot on Telegram¶
Before TeleBotHost can run your bot, we need to register it with Telegram. We do this using Telegram’s official bot manager: @BotFather. Yes, the name is a Godfather reference.
- Open Telegram and search for @BotFather. (Make sure it has the blue verification checkmark!)
- Click Start and send the command
/newbot. - Give your bot a friendly display name (e.g.,
My Cool Support Assistant). - Choose a unique username that ends with the word
bot(e.g.,super_helper_xyz_bot). - BotFather will send you a message with an API Token (a long string of letters and numbers).
- Copy that token and keep it secret. Treat it like a password!
2. Connect Your Bot to TeleBotHost¶
Now, let's give your bot a brain:
- Open the TeleBotHost Console.
- Log in or create a quick free account.
- On your dashboard, click Add Bot.
- Paste the API Token you copied from BotFather.
- Click Create.
Your bot is now registered in your dashboard!
3. Add Your First Command¶
Let's teach your bot how to say hello:
- Click on your new bot in the dashboard to open its panel.
- Go to the Commands section and click Add Command.
- In the Command field, type
/start(this is the button users click when they first open your bot). - In the Answer field, type what you want the bot to reply with:
- Click Save Command.
4. Turn the Bot On!¶
Your command is saved, but the bot is still sleeping:
- Look at the top right of your bot's panel in the dashboard.
- Click Launch Bot (or click the start button).
- The status will change to show your bot is Online.
5. Test It!¶
Now for the best part:
- Open Telegram.
- Search for your bot's username (e.g.,
@super_helper_xyz_bot) and open the chat. - Click the Start button at the bottom (or send
/start). - Watch your bot respond instantly with the text you set up!
Congratulations, you are officially a bot developer. Take a screenshot, show your friends, or just celebrate.
What's Next?¶
Now that your bot is alive, let's make it smart:
- Learning TBL — Take your first steps into writing simple JavaScript logic to make your bot interactive.
- Your First Bot Tutorial — A hands-on walkthrough to build a
/hellocommand with some custom logic. - Adding Keyboards — Give your users nice buttons to click instead of typing commands.