๐Ÿ“ฑ Telegram

Create a Telegram Bot
Step by Step

This visual guide will walk you through creating your first Telegram automation bot on CodeCanvas โ€” no coding needed.

โฑ Takes about 5 minutes ยท Beginner friendly
1
Open Telegram & Find BotFather
BotFather is the official Telegram bot that creates all other bots. You must go through BotFather to get your bot token.
๐Ÿ“ฑ
Open your Telegram app on phone or desktop
๐Ÿ”
In the search bar, type @BotFather and press Search
โœ…
Look for the blue โœ“ verified badge next to BotFather โ€” this is the official one
๐Ÿ‘†
Tap on BotFather and press Start
๐Ÿ’กYou can also click this link to open BotFather directly: t.me/BotFather
๐Ÿค–
BotFather
โœ“ Official bot
Hi! I'm BotFather. I can help you create and manage Telegram bots.
/start
Use /newbot to create a new bot
2
Create Your New Bot
Send the /newbot command and BotFather will ask you two questions: a display name and a username for your bot.
โœ๏ธ
Send this command to BotFather: /newbot
๐Ÿ“
Question 1: Enter a display name for your bot. Example: My Support Bot
๐Ÿท๏ธ
Question 2: Enter a username โ€” must end with "bot". Example: mysupport_bot
โš ๏ธThe username must be unique across all of Telegram and must end with "bot" โ€” e.g. myshop_bot or supportbot
๐Ÿค–
BotFather
โœ“ Official bot
/newbot
Alright, a new bot. How are we going to call it? Please choose a name.
My Shop Bot
Good. Now let's choose a username for your bot. It must end in 'bot'.
myshop_bot
3
Copy Your Bot Token
After creating the bot, BotFather will give you a token. This is a secret key that looks like a long string of numbers and letters. Keep it safe!
๐ŸŽ‰
BotFather will congratulate you and show your bot token
๐Ÿ“‹
The token looks like this: 123456789:ABCdefGHIjklMNOpqrSTUvwxYZ
๐Ÿ‘†
Tap and hold the token to copy it, or tap the copy icon
123456789:ABCdefGHI-ExampleToken
๐Ÿ”’Never share your token publicly! Anyone with your token can control your bot.
๐Ÿค–
BotFather
โœ“ Official bot
Done! Congratulations on your new bot. You will find it at t.me/myshop_bot.

Use this token to access the HTTP API:

123456789:ABCdef...

Keep your token secure!
4
Create Bot on CodeCanvas
Now go to your CodeCanvas dashboard and create a new bot. Paste your Telegram token there.
โž•
Click the "+ Create New Bot" button
๐Ÿ“ฑ
Select Telegram as the platform
๐Ÿ“‹
Paste your token in the "Telegram Bot Token" field
๐Ÿš€
Click "Create Bot" โ€” your webhook URL will be generated automatically
CREATE NEW BOT
My Shop Bot
๐Ÿ“ฑ Telegram
123456789:ABCdef...
๐Ÿš€ Create Bot
5
Connect Webhook to Telegram
The final step is to tell Telegram where to send messages. Copy your webhook URL and open it in a browser โ€” that's all!
๐Ÿ”—
In your bot settings, find your Webhook URL and copy it
๐ŸŒ
Open a new browser tab and go to this URL:
https://api.telegram.org/botYOUR_TOKEN/setWebhook?url=YOUR_WEBHOOK
โœ…
You should see: {"ok":true,"result":true}
๐ŸŽ‰
Send a message to your bot on Telegram โ€” it should appear in your Messages dashboard!
๐Ÿ’กAfter connecting, go to your bot in Telegram and send /start to test it!
{
  "ok": true,
  "result": true,
  "description": "Webhook was set"
}
โœ…Webhook connected successfully! Your bot is now live.

๐ŸŽ‰ Your bot is live! Now add auto-replies

Go to your bot and create flows โ€” rules that tell your bot how to respond to messages.

๐Ÿ”‘
Keyword Reply
Reply when message contains a specific word like "price", "help", "order"
๐Ÿ‘‹
Welcome Message
Automatically greet new users when they first message your bot
๐Ÿค–
AI Auto-Reply
Enable AI to answer any question your flows don't cover automatically
โ“
Fallback Reply
Send a default message when no other flow matches

Ready to create your bot?

Set up your Telegram bot in 5 minutes โ€” completely free, no coding required.

๐Ÿค– Create My Bot Now โ†’ ๐Ÿ“š More Guides

Other Platform Guides

๐Ÿ’š
WhatsApp Business Bot
โฑ 10 minutes
๐Ÿ“˜
Facebook Messenger Bot
โฑ 10 minutes
๐ŸŽฎ
Discord Bot Setup
โฑ 8 minutes
โšก
Creating Bot Flows
โฑ 5 minutes