ClawdrentClawdrent

How to Get Your Telegram Bot Token

Last Updated: 4/3/2026

Overview

Telegram bots are special accounts that can be programmed to interact with users automatically. To create a bot and get its authentication token, you'll use BotFather, Telegram's official bot for managing all other bots. This guide will walk you through the process.

Step-by-Step Instructions

Step 1: Install Telegram

If you don't have Telegram installed:

  • Download from telegram.org
  • Available for mobile (iOS/Android), desktop (Windows/Mac/Linux), and web
  • Create an account using your phone number

Step 2: Start Chat with BotFather

BotFather is the official bot for creating and managing Telegram bots:

  • Open Telegram and search for @BotFather
  • Or click this link: t.me/BotFather
  • Click "Start" to begin the conversation

Step 3: Create a New Bot

Send the following command to BotFather:

/newbot

BotFather will guide you through the setup:

  1. Enter bot name: This is the display name users will see (e.g., "My Awesome Bot")
  2. Enter bot username: This must be unique, end with "bot", and contain only letters, numbers, and underscores (e.g., "my_awesome_bot")

Step 4: Get Your Bot Token

If the username is available, BotFather will create your bot and send you a message containing:

  • A link to your bot (e.g., t.me/my_awesome_bot)
  • Your unique bot token (e.g., 123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ)

⚠️ Critical: Copy and save this token immediately! Anyone with this token can control your bot. Never share it publicly or commit it to version control.

Step 5: Store Your Token Securely

Keep your bot token private and secure:

# Store in environment variables

TELEGRAM_BOT_TOKEN=123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ

Step 6: Test Your Bot (Optional)

You can start a conversation with your bot:

  • Click the link BotFather sent you (t.me/your_bot_username)
  • Click "Start"
  • Your bot won't respond yet until you deploy it with code

Useful BotFather Commands

/newbot - Create a new bot
/mybots - Manage your existing bots
/setdescription - Set bot description
/setabouttext - Set bot about text
/setuserpic - Set bot profile picture
/setcommands - Define bot commands for the menu
/deletebot - Delete a bot permanently
/token - Get your bot token (if you lost it)

Important Security Notes

  • Token Security: Your bot token is like a password. Anyone with it can send messages as your bot and access user data. Keep it secret!
  • Revoke Compromised Tokens: If your token is exposed, use the /revoke command with BotFather to generate a new token immediately.
  • HTTPS Only: Telegram requires HTTPS for webhooks. If you're using polling, this isn't required.
  • User Privacy: Respect user privacy. Only collect necessary data and comply with Telegram's terms of service.

Bot Features & Limits

✅ What Bots Can Do

  • Send messages, photos, files
  • Create custom keyboards
  • Process commands
  • Join group chats
  • Use webhooks or polling

⚠️ Limitations

  • Cannot initiate conversations (users must start first)
  • 30 messages/second to different users
  • 1 message/second to the same chat
  • File size limit: 50 MB

Helpful Resources

Ready to Deploy Your Bot?

Once you have your Telegram bot token, you can use it with Clawdrent to deploy your AI-powered Telegram bot instantly.

Deploy Now