Hi Everyone,
I am sure you all have used Telegram bots for multiple tasks, from YouTube downloaders to Group moderator bots.
Here I am going to explain how you can make your own Telegram bot with Python.
It’s an in-depth tutorial exclusively for onehack members.
Let’s start…
First of all we need a Telegram bot to program. So, let’s create a telegram bot.
Part 1: Creating Telegram bot
Follow the steps below to create a Telegram bot.
-
Go to @botfather in Telegram app
-
Start the BotFather bot
-
Send /newbot to BotFather
-
Give a name to the bot
-
Choose a username for your bot that end with bot
-
Keep the Token sent by BotFather at a safe place
Part 2: Program your Telegram Bot in Python
To work with your Telegram Bot you need to follow the steps below.
- Install Python 3 for Your PC
- Install Git Bash
- Install pyTelegramBotApi module by either pip or manually downloading
- import telebot and start writing the program
Some Basic Examples of Bots you can begin with in Python:
- RSSFeed Bot(using feedparser module)
- Currency Converter bot
Thanks & Regards,
Abhishek Verma
Any questions? Ask me questions in replies or Twitter.


!