Creating the simplest Telegram bot in 10 minutes
Next step
Open the bot or continue inside this section.
Article -> plan in AI
Paste this article URL into any AI and get an implementation plan for your project.
Read this article: https://vibecode.morecil.ru/en/telegram-boty/%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5-%D1%81%D0%B0%D0%BC%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%BE%D1%81%D1%82%D0%BE%D0%B3%D0%BE-telegram-%D0%B1%D0%BE%D1%82%D0%B0-%D0%B7%D0%B0-10-%D0%BC%D0%B8%D0%BD%D1%83%D1%82/
Work in my current project context.
Create an implementation plan for this stack:
1) what to change
2) which files to edit
3) risks and typical mistakes
4) how to verify everything works
If there are options, provide "quick" and "production-ready". How to use
- Copy this prompt and send it to your AI chat.
- Attach your project or open the repository folder in the AI tool.
- Ask for file-level changes, risks, and a quick verification checklist.
Do you want to see your first bot on Telegram that at least says “Hi!” and responds to messages – and yet doesn’t write a line of code yourself?
Let’s do this in one prompt in Codex (or any AI editor with Agent mode).
What to have in advance:
- Installed Codex (or Cursor, Aider, Claude Projects, Continue.dev, etc.)
- Telegram on your phone or computer
- Python installed (3.10+), but even this AI can test and prompt
Step 1. Create a bot in Telegram and get a token
- Open Telegram
- Search for @BotFather
- Write a team
/newbotXX - Think of a bot name, like:
Мой Первый БотикXX - Create a username - required ends in
bot:@AlexeyTestBotXX@VibeFirstBotX@SimpleEchoBotX - BotFather will send you a token
123456789:AAF1b2C3d4E5f6G7h8I9j0KLMNOPQRSTUVWXYZXX - Copy the token and keep it on hand (preferably in the clipboard)
Step 2. We open Codex and ask you to create a bot with one prompt
- Launch Codex
- Create a new blank project:
File → New Folder / New Window → Choose or create an empty folder, such as
simple-telegram-bot - Copy this whole prompt and put it into the AI chat:
Create the simplest Telegram bot in Python for a beginner.
Requirements:
Use the python-telegram-bot library (the newest version with Application and async)
Store the token in the .env file via python-dotenv
- The bot should:
To the /start command, reply: Hello! I'm your first bot, write me something!
Respond to any text message with an echo: "You wrote: [text message]"
- To /help reply: "I can only /start and repeat your messages По"
Run through polling (app.run polling())
When starting, type to the console: "Bot launched!" Text him on Telegram.
- All in one bot file. py
Create .env file from placeholder: BOT TOKEN=your token here
If necessary, create requirements.txt with the right dependencies.
- Code with comments in Russian
Nothing complicated: no keyboards, no photos, no AI, no database.
Create files on the disk right now and open them for me.
After creating the commands to start:
1. pip install -r requirements.txt (or pip install python-telegram-bot python-dotenv)
2. Python bot. py
Press Enter/Apply Codex will think and ***** create **
- bot.py with ready code
- .env with BOT TOKEN=...
- possibly requirements.txt
When asked permission to create files → permissions (Approve / Yes)
Step 3. Insert the token and launch it
Open the
.envfile (it has already been created)Replace the line with yours:
BOT_TOKEN=123456789:AAF1b2C3d4E5f6G7h8I9j0KLMNOPQRSTUVWXYZXX (insert your real token)Save the file (1-3 steps can also be done through an AI request)
Write in the input window of
Запусти бота, codex will think, set the dependencies and run the bot, after reporting a successfully completed task.Open Telegram → find your bot by username → write
/startThen write any message - the bot must repeat it with the prefix "You wrote: ..."
Done!
You now have a live Telegram bot, and you haven't written a single line of code with your hands.
What can you do next (also in one prompt):
- Add the /time command so that the bot writes the current time
- “Make the bot respond with random jokes.”
- Add the "Hello" button below the message
Just insert a new prompt form into the input window: Take the current bot and add..