
Python Applications
Create a Professional Telegram Chatbot Using Python
What you'll learn
- Create a bot for the Telegram app
- Install the working environment and fix common problems
- Get to know the bot library and test it
- Write automatic reply code in Python
- Fetch user information from the bot
- Build a bot that sells products
- Add a store for goods and connect the data
- Create a calendar and image libraries inside the bot
- Add a smart alarm to the bot
- Combine the code into one professional program
About this course
This course shows you how to build a Telegram chatbot with Python. A chatbot is a program that replies to users automatically inside Telegram, and it can be used to present products, sell, and answer frequently asked questions. The course begins with an introduction to the course and why it matters, then creates a Telegram bot and explores its features, installs the working environment and fixes common problems, and gets to know the bot library and tests it. Next you write your first automatic reply code and fetch user information from the bot, then create a bot that sells products, add a store for goods and connect the data. You also learn how to create a calendar and add it to your group, build image libraries to display and save pictures, add a smart alarm, and finally combine all the code into one professional program. The course suits anyone who wants to learn Python through a practical project, and business owners who want a bot to answer their customers. By the end, you will be able to build a complete Telegram bot on your own.
Expected outcomes
- Create professional bots for Telegram.
- Design interactive functions that meet user needs.
- Manage and add advanced features to bots.
- Write clean and scalable code.
Learner reviews
Course content
1Lecture One
2 lectures
- Introduction to the Course, Its Importance, and ContentsIntroduces the Telegram bot course in Python, the benefits and business uses of bots, the pyTelegramBotAPI library, and creating a bot through BotFather.10:58
- Creating a Telegram Bot and Exploring Its FeaturesExplains creating a Telegram bot with BotFather, choosing its name and username, getting the API token, and editing its description and picture.18:17
2Lecture Two
2 lectures
- Setting Up the Work Environment and Solving Common IssuesExplains setting up the environment for Telegram bot programming: downloading Python, the Visual Studio editor and a CMD tool, and copying code from GitHub.9:30
- Getting to Know the Bot Library and Testing ItExplains installing Python libraries with PIP, testing the installation, and writing a first bot with the telebot library that replies to the start and help commands.16:14
3Lecture Three
2 lectures
- Writing the First Auto-Reply Code Using PythonExplains writing auto-reply code for a bot in Python, getting the user's ID and username, and sending them in the reply with line formatting.10:25
- Calling User Information from the BotExplains retrieving user details such as chat ID and name inside the bot's message using format, setting utf-8 encoding for Arabic, and fixing an error that appeared.11:30
4Lecture Four
2 lectures
- Creating a Bot to Sell Products Without Any Programming ExperienceShows how to build a bot for displaying store or blog products with no coding, using a ready-made Telegram bot, adding messages, buttons and options per product.11:49
- Adding a Store to Sell Goods and Linking InformationExplains programming a store inside a Telegram bot in Python, defining products with names and prices and showing them with inline keyboard buttons and a back button.22:25
5Lecture Five
3 lectures
- Creating a Unique Calendar and Adding it to Your CollectionExplains building an interactive calendar and adding it to the Python bot, organizing code into files such as filters and keyboards, with Arabic and UTF-8 support.14:15
- Creating Image Folders and Displaying and Saving ThemExplains building an image library inside the bot to display and save images in Python, with commands like get image and showing the typing action before sending.15:38
- How to Add a Smart Alarm Using PythonExplains adding a smart timer to a Telegram bot in Python, where the user sets seconds with the set command and the bot sends an alert when time is up.8:24
6Final Lecture
1 lectures
- Linking All Code with Professional CodeExplains combining several pieces of code in one bot, such as message handlers, custom filters and admin checks, and creating a poll for voting.13:37
Instructor

Eng. Kanaan Al-Hallaj



