How to Add Bot Telegram
In this article
To add a bot to your Telegram group or chat, you need to create the bot first using the BotFather, then invite it to your group and configure its permissions. This setup allows you to automate tasks like message moderation, information retrieval, or notifications.
What You'll Need
- A Telegram account
- The Telegram app installed on your device (mobile or desktop)
- Access to a group or channel where you want to add the bot
- Basic knowledge of bot creation via BotFather
Step-by-Step
- Open the Telegram app and search for
@BotFatherin the search bar or start a new chat with the username@BotFather. - Type
/startto begin interacting with BotFather. - Select
/newbotfrom the menu or type it manually to create a new bot. - Enter a name for your bot, for example
My Awesome Bot. This will be displayed to users. - Provide a username for your bot, ending with
bot, e.g.myawesomebot_bot. This is used to identify the bot in chats. - BotFather will generate two tokens: a long API token and a short bot name. Copy and save the API token securely. You’ll need it later for configuration.
- Go back to your group or channel where you want to add the bot.
- Type
/addbotin the chat window, or tap the three dots menu (⋮) and selectAdd botif available. - Search for your bot’s username, e.g.,
@myawesomebot_bot, and select it. - Invite the bot to your group by clicking
Addor confirming the invitation. - Grant necessary permissions to the bot. For example, if your bot needs to delete messages, enable the
Delete Messagespermission in the group settings. - Test your bot by sending a message or triggering an action to ensure it works correctly.
Common Mistakes
- Using an invalid username (must end with
bot) when creating the bot. - Not copying and saving the API token provided by BotFather — you won’t be able to access it again.
- Inviting the bot to a private group without giving it admin rights, preventing it from performing actions like deleting messages.
- Adding a bot that is already added to another group, which may cause conflicts or unexpected behavior.
- Forgetting to give proper permissions in group settings — bots behave differently depending on their role.
Tips
- Always test your bot after adding it to confirm functionality.
- Name your bot clearly so users know its purpose at a glance.
- Set up a welcome message or help command for users who interact with your bot for the first time.
- Use group descriptions or pinned messages to inform members about bot commands or features.
- If you're building a bot for automation, consider using webhooks or built-in APIs to improve performance.
Troubleshooting
If your bot doesn’t appear in the list or fails to function:
- Ensure the bot username is correct and ends with
bot. - Double-check that you copied and saved the token properly from BotFather.
- Verify that your Telegram app is updated to the latest version.
- Try restarting the Telegram app and re-inviting the bot.
- If the bot still doesn’t respond, double-check group permissions and make sure it has admin privileges if needed.
- Check Telegram’s official status page for any ongoing global issues affecting bot services.
Frequently Asked Questions
How do I find my bot’s API token?
You receive the API token immediately after creating the bot via BotFather. Save it securely because it cannot be retrieved later.
Can I use a bot on multiple groups?
Yes, a single bot can be invited to multiple groups. Just repeat the process of inviting it to each group separately.
Do I need to pay to create a Telegram bot?
No, Telegram bots are completely free to create and use. You only need a Telegram account.
What permissions should I give a bot in a group?
Give permissions based on the bot’s functions. For example, if it deletes spam, grant Delete Messages. If it sends announcements, Post Messages might be required.
Why isn’t my bot responding to commands?
Your bot may lack sufficient permissions, or it could simply not be configured with a response handler. Check both group permissions and the bot’s code or settings in BotFather.
Is it safe to share my bot’s username?
Yes, sharing your bot’s username is safe. It’s designed to be public and used by others to interact with your bot.