How to create an awesome Telegram bot without coding
Have you ever wanted to create an awesome bot for your channel but could not make it because you don't know how to code?
Then this blog is just for you
In this blog, I'll give you step by step guidance on how to create an awesome telegram bot without any coding. I will make a dummy bot with you to show you how it's done.
You can do this even on your mobile device
Let's begin!
We will divide the whole process into three major steps and four substeps:
1. Creating the bot
2. Adding MenuBot
B. Creating Messages
C. Creating Questions
D. Creating Inline Buttons
1. Creating the bot
At first, you need to go to www.telegram.org or open your telegram app in either your computer or your mobile. After you are logged in search @BotFather in the search bar or click here.
Then type /start after opening the BotFather bot
Then a lot of instructions will be shown. You may go through all of the instructions by yourself or you may follow me.
If you are still following me, type /newbot
Now you have to enter the Name for your bot. You can change the name later whenever you want by simply typing /setname
After setting an awesome name for your bot you have to set a unique username for your bot. Choose username wisely as it can't be changed later. Enter the username and you're done. It may take several tries before you get an available username. It took me three tries also 😅. When it is done, you will get an API code of your bot just like this👇
Save this API code somewhere because this is the most important code for your bot. Don't share this API code with others.
We are almost done here.
You can use these commands to perform these actions
/setname - change the bot's name
/setdescription - change bot description
/setabouttext - change bot about info
/setuserpic - change bot profile photo
After doing necessary changes click on the link of your bot to start your bot
2. Adding MenuBot
We will add the MenuBot to our bot now
1. Search @MenuBuilderBot or click here
2. Type /start
3. Now choose your language
4. Click on Manage bot
5. Click on +Add Menu Bot
6. Paste the API code that you got from BotFather
Done!
3. Creating and arranging the Menus
Now, it is time to decorate your bot with awesomeness.
I will tell the basics here, rest depends on your creativity and imaginations. You can check my bot to have an idea
This section is also divided into four steps:
A. Creating Buttons
B. Creating Messages
C. Creating Questions
D. Creating Inline Buttons
1. Open your bot.
2. Click on the Start button
3. Choose your language (just like before)
4. Click on the Buttons Editor button
5. Click on Add Button
6. Set the name of the button (here, I have set the name as "abc")
You can add more buttons by clicking on + Add Button
You can create Main Menu and then create Submenus and create more Sub options under those. This depends upon your need. You can check my bot to have an idea
You can perform some actions to tweak the button by clicking on the options showed below the button when you select the button(button will be inside brackets when it is selected):
- Move the button to the left
- Move the button upwards
- Move the button downwards
- Move the button to the right
- Tweak button settings (not for beginners)
- Edit button
- Delete button
- Move button
B. Creating Messages
After you are done creating buttons it's time to put messages or questions in those buttons. To do that simply click on the Posts Editor button
Now you have to select the button where you want to add data. Selected button will appear within third brackets like this [Button]
If you want to add data to the submenus or suboptions you need to click the selected button again, then you need to select the submenu or the sub-option that you want to edit.
You can add messages by clicking on the + Add Message button. Type whatever you want to set as a message then hit send button. You can add multiple messages to appear at once.
You can also perform some actions on your message by clicking on the buttons shown below your message:
- Move upwards
- Move downwards
- Add inline buttons (discussed later)
- Replace with a new message
- Delete the message
- Add a message to it
C. Creating Questions
You can also create Questions by clicking on +Add Questions.
Questions are of three types:
- Question with a single answer
- Question with multiple answers
- Question with multiple responses set by you, from where one response has to be chosen by the user
Choose as per your need.
You can also perform some actions on the question which are same as the actions performed with the message (mentioned previously)
D. Creating Inline Buttons
Now let's talk about the inline button.
The Inline button can be used to create cute hyperlinks to other channels or bots, or you can create cute share buttons with the help of Inline buttons.
Here I'll show you how to create a share button using inline buttons.
To use inline buttons you need to add a message first. I added "share" as my message in the "abc" button.
Then click on the inline button option (shown as a star mark) below the message or question (where you want to put the share button).
Now click on the + Inline Button➡ or +Inline Button⬇ (these arrows denotes the position of the inline button which will work when you place more than one Inline Buttons)
1. Inline button which redirects to another URL or acts as a share button
2. Inline button to open a popup window with some message on it
3. Inline button with commands
In our case, we will use the first one. To switch between all the three types, you need to click on the Button Mode option
So after keeping the Button Mode to URL or share we have to enter our URL
This has to be done in a specific way. Enter
<Your Message in one line>
https://t.me/share/url?url=t.me/<your bot's user name>
The first line consists of the Casing of the button which will be shown on the button. We are using "Share" as our casing.
The second line consists of the URL or the bot or channel we want to share.
To create a share button, the second line has to be like:
https://t.me/share/url?url=t.me/<your bot's user name>
But, if you want to create a hyperlink to another channel or another bot, you have to enter it this way:
https://t.me/<the other bot's or channel's name>
And if you want to create a hyperlink to a specific URL, simply paste the URL in the second line
Our share button is ready! This button will always appear with the message "share" when the "abc" button will be clicked by a user
Congratulations!!!
The basics are done!
Rest of the work depends on your creativity and imaginations. You may visit my bot KeyBot to have an idea.
If you want me to make a bot for you, you may email me to mjeet129@gmail.com with sub: Request to make a bot
Thanks for visiting this blog. If you liked this post please follow this blog and comment below.
















Post a Comment