Connecting to Telegram
Before your bot can work, you need to connect it to Telegram using a Bot Token. This guide walks you through the process.
What is a Bot Token?
A bot token is like a password that lets BotGami control your Telegram bot. It's a long string that looks like this:
123456789:ABCdefGhIJKlmnopQRSTuvwxyz12345
Your bot token is private. Never share it publicly or commit it to public code repositories. Anyone with your token can control your bot.
Creating a New Bot on Telegram
Step 1: Open BotFather
- Open Telegram (on your phone or desktop)
- Search for @BotFather
- Start a conversation by clicking Start
BotFather is Telegram's official bot for creating and managing bots.
Step 2: Create Your Bot
- Send the command:
/newbot - BotFather will ask for a name — this is the display name users see (e.g., "My Awesome Bot")
- Then it asks for a username — this must end in "bot" (e.g., "my_awesome_bot" or "MyAwesomeBot")
Step 3: Get Your Token
After creating the bot, BotFather will send you a message containing your bot token. It looks like:
Done! Congratulations on your new bot. You will find it at t.me/MyAwesomeBot.
Use this token to access the HTTP API:
123456789:ABCdefGhIJKlmnopQRSTuvwxyz12345
Copy the token — you'll need it in the next step.
Adding the Token to BotGami
- Open BotGami
- Go to your bot's Settings (gear icon)
- Find the Bot Token field
- Paste your token
- Click Save
That's it! Your bot is now connected to Telegram.
Testing the Connection
To verify everything works:
- Open Telegram
- Search for your bot by its @username
- Click Start
- If your bot has a
/startcommand set up, you should see a response!
Troubleshooting
"Invalid Token" Error
- Make sure you copied the entire token, including any numbers before the colon
- Check that there are no extra spaces at the beginning or end
- Try generating a new token (see below)
Regenerating a Token
If your token is compromised or not working:
- Go back to @BotFather
- Send
/mybots - Select your bot
- Choose API Token → Revoke current token
- Copy the new token and update it in BotGami
Each time you revoke and generate a new token, you must update it in BotGami for your bot to continue working.
Next Steps
Now that your bot is connected:
- Build Your First Flow → — Create a working bot
- Learn Core Concepts → — Understand how it all works