✈️
ChannelsBeginner

How to Create a Telegram Bot and Get Your Bot Token

F
FrontOrbit Team·Integration Engineering
6 min read

Quick Answer: A Telegram Bot Token is a 46-character alphanumeric string in the format 1234567890:ABCdefGHIjklMNOpqrSTUvwxYZ. You obtain it for free in under 3 minutes by messaging @BotFather on Telegram. Paste the token into your FrontOrbit onboarding wizard (Step 3 — Setup Details) and our team handles the rest.

What Is a Telegram Bot and Why Use It?

Telegram is used by over 950 million monthly active users as of 2024 — and unlike WhatsApp, it has a completely open, free Bot API that any developer (or business using a platform like FrontOrbit) can use without Meta's approval process, template restrictions, or per-conversation fees.

A Telegram Bot is a special Telegram account operated programmatically via the Telegram Bot API. When a customer starts a conversation with your bot, every message routes to FrontOrbit's AI, which processes and responds in real time. The customer experience is identical to messaging any Telegram contact.

FeatureWhatsApp BusinessTelegram Bot
Setup frictionHigh (Meta approval)None (instant)
Per-message costPer Meta rate cardFree
24-hour window restriction✅ Yes❌ No
Template pre-approval required✅ Yes❌ No
Rich media support✅ Yes✅ Yes
Inline keyboards / buttons❌ Limited✅ Full

Telegram is especially well-suited for service businesses with a tech-savvy or international customer base, or for supplementing WhatsApp with a zero-cost messaging channel.


Step-by-Step: Creating Your Telegram Bot

Step 1: Open @BotFather

@BotFather is Telegram's official bot management bot — the only way to create, configure, and manage Telegram bots. It is documented officially by Telegram here.

  1. Open Telegram on your phone or desktop
  2. Search for @BotFather (look for the verified blue checkmark)
  3. Start the conversation by clicking Start or typing /start

Warning: Imposters exist. Always verify the checkmark. The real BotFather is at https://t.me/BotFather — never search for "bot father" without the @.

Step 2: Create a New Bot

Type /newbot and press send. BotFather will ask you two questions:

  1. "What is the name of your bot?" — This is the display name customers see (e.g., Serenity MedSpa AI)
  2. "Now let's choose a username for your bot." — This must end in bot and be globally unique (e.g., serenity_medspa_bot)

If your desired username is taken, append your city or year: serenitymedspa_dubai_bot.

Step 3: Copy Your Bot Token

After choosing the username, BotFather replies with a message containing your token:

Done! Congratulations on your new bot. You will find it at t.me/your_bot_name.
You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.

Use this token to access the HTTP API:
1234567890:ABCdefGHIjklMNOpqrSTUvwxYZ

For a description of the Bot API, see this page: https://core.telegram.org/bots/api

Copy the token exactly — the full string including the colon and everything after it.


Pasting Your Token into FrontOrbit

During Step 3 of the onboarding wizard (Setup Details), if you selected Telegram as a channel, you'll see a text field:

Telegram Bot Token
1234567890:ABCdefGHIjklMNOpqrSTUvwxYZ

Paste your token here. After you submit onboarding, our team will:

  1. Validate the token format and confirm the bot exists
  2. Register FrontOrbit's webhook URL with your bot via the Telegram API's setWebhook method
  3. Test a round-trip message to confirm delivery
  4. Notify you by email when the channel is live

Optional: Configuring Your Bot Profile

Before submitting onboarding, you can enhance your bot's profile via BotFather:

CommandWhat it does
/setdescriptionText shown on the bot's profile page (500 chars max)
/setabouttextShort text in the contact's "About" section (120 chars)
/setuserpicUpload your business logo as the bot's avatar
/setcommandsDefine slash commands (e.g., /book, /hours, /location)

Set slash commands for a better UX. Adding /book → "Book an appointment" and /hours → "See our business hours" gives customers instant action buttons when they open your bot. FrontOrbit's AI recognizes these commands and responds appropriately.


How Telegram Webhooks Work (Technical Context)

When your customer sends your bot a message, Telegram pushes that message payload to FrontOrbit's webhook endpoint via an HTTPS POST request. This is called the webhook delivery model (as opposed to polling, where the bot would constantly ask Telegram "any new messages?").

FrontOrbit's architecture uses webhooks because:

  • Latency: Messages are delivered in milliseconds (polling checks every few seconds at best)
  • Efficiency: No wasted API calls when the bot is idle
  • Scale: Works identically whether your bot gets 1 message/day or 10,000

The Telegram Bot API specification is maintained at core.telegram.org/bots/api.


Security: Keep Your Token Private

Your bot token is equivalent to a password. Anyone who has it can:

  • Send messages as your bot
  • Delete your bot's webhook
  • Read all messages sent to your bot

Never share your token publicly. If you accidentally expose it (e.g., in a public GitHub repo), immediately revoke it:

  1. Message BotFather: /revoke
  2. Select your bot
  3. BotFather issues a new token
  4. Email [email protected] with the new token so we can update your webhook

Frequently Asked Questions

Q: My preferred bot username is taken. How do I pick a unique one? Append your city, niche, or year: drsmith_dental_bot, luxe_skin_nyc_bot. Underscores are allowed; hyphens are not.

Q: Can I use an existing Telegram bot I already have? Yes. Provide the token for your existing bot in Step 3 of the onboarding wizard. We'll register our webhook to it. Note: if your existing bot already has a webhook set by another service, FrontOrbit's registration will override it.

Q: The onboarding wizard accepted my token but I haven't received a confirmation. What's wrong? Our team validates tokens manually during the setup window. You'll receive an email confirmation. If 48 hours pass without one, contact support.

Q: Can my bot support multiple languages? FrontOrbit's AI detects the language of incoming messages and responds in kind, across 50+ languages supported by our AI provider.