# Create Telegram Bot

This section describes for how to make Bot on the telegram, go to the BotFather (If you open it in desktop, make sure you have the Telegram app), by doing the following steps:

First, Enter the URL address in the web browser <https://web.telegram.org/> or you can use telegram desktop. And then, log in to your telegram account.&#x20;

![Login Telegram](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MSlLQKiYvUKKDSsbde5%2F-MSlMsQAnb2H0-Hc0Zx7%2Fx2-16-1024x576.png.pagespeed.ic.awipXDqmdr.png?alt=media\&token=7c4183ff-6050-4665-8c5c-0e7ef6e78673)

After login telegram account, conduct a search for `@Botfather` and add it to your conversations, or you can directly open the URL [https://telegram.me/botfather](https://telegram.me/botfather?source=post_page---------------------------) to start conversations with BotFather.

![Bot Father](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MSlLQKiYvUKKDSsbde5%2F-MSlN_oa3L207cl--sqM%2FBotFather.png?alt=media\&token=7231c2f9-361f-469d-bf2a-c612c98a8b13)

BotFather will then introduce itself and will display a **START** button at the bottom for the user.

![Introduce Message](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MSlLQKiYvUKKDSsbde5%2F-MSlOHi9ixkDtmT-3Ycr%2FIntroduce%20Bot.png?alt=media\&token=35945b50-57bd-4493-9ba9-62f5c5c23d62)

Once you click on the **START** button, **BotFather** will provide you with all the commands that can be used for creating a new bot.

![Start](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MSlLQKiYvUKKDSsbde5%2F-MSlOiI4igt06skIWOYC%2FStart.png?alt=media\&token=f14fe1c3-a9cc-4935-8406-2dbab09e4a4e)

Now, click on the link **/newbot** from your conversation with BotFather. With this command, BotFather will ask you to choose a name for your bot.

![New Bot](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MSlLQKiYvUKKDSsbde5%2F-MSlPDuchvFy-tQv8XCm%2FName%20Bot.png?alt=media\&token=803df8f1-55ae-491b-9970-b839477fdbb6)

For example, choose the name 'PolongBot'. BotFather will internally validate whether the name is available. (the **name** of your Bot is displayed in contact details and elsewhere). If it is available, BotFather asks for a username for the newly created bot.

![Bot Name](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MSlLQKiYvUKKDSsbde5%2F-MSlPwYB3sCUE3gMfsdu%2FPolongBot.png?alt=media\&token=a9a18012-6154-4a6c-93d5-bf14a872b3ba)

For example, choose the username 'PolongBot' (The **Username** is a short name, to be used in mentions and 'telegram.me' links. Usernames are 5-32 characters long and are case insensitive, but may only include Latin characters, numbers, and underscores. Your bot’s username must end in ‘bot’, Ex: “Testingbot”, “Testbot”, etc).

At this point, BotFather has created your bot and has also provided a token for your bot. This token can be used whilst wiring up your bot with Telegram bot APIs. Keep your token secure and store it safely, it can be used by anyone to control your bot.

![Generate Token](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MSlLQKiYvUKKDSsbde5%2F-MSlQfpo3-cuzUhb2PUB%2FAPI%20Generate.png?alt=media\&token=04fe513e-c701-4f49-b216-f20f2f5394a0)

Check the Bot that has been made, to find out if the Bot has been successful or not by means of private chat to the Bot.  Check in the browser by typing the URL [https://api.telegram.org/bot**Token\_Anda**/getupdates](https://api.telegram.org/botToken_Anda/getupdates). If the results are checked on the browser as shown below, then the Bot is made successful.

![getUpdate Token](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MT3gMM1B0YiBm0NkJ-k%2F-MT3kzhm-p0HG46F1YgE%2FGetUpdate%20Edit.png?alt=media\&token=023e88b6-e5f0-4c1c-b56a-2f1bca0cb3e6)
