A Telegram bot sounds like something only programmers make. In fact, you can have your own in about two minutes, using nothing but the Telegram app. Bots can deliver messages, notifications and reminders straight to your chat, and many useful apps and services rely on them.

This guide shows you how to make one, how to find the two pieces of information you'll need, and what you can do with your bot once it's ready. Among other things, it can receive your text messages through TeleSMS.

What is a Telegram bot?

A bot is a special Telegram account that is controlled by software and not by a person. It has a name and a chat window like any other contact. Apps and websites can use it to send you messages, and you can read those messages on every device where you use Telegram.

Bots are free to create, and you can have more than one.

Step 1: Talk to BotFather

Telegram provides an official bot for creating bots, called @BotFather.

  1. Open Telegram and search for @BotFather. Look for the verified badge.
  2. Tap Start, then send the command /newbot.
  3. Type a display name. This can be anything, such as "My SMS Bot".
  4. Choose a username. It must be unique, and it has to end in "bot".

BotFather will reply with a long string of letters and numbers. That is your bot token, and you should keep it private.

Step 2: Say hello to your bot

A bot can't start a conversation with you. You have to go first. Find your new bot using the link from BotFather, open the chat and tap Start. Send it any message, and it will then be able to reply to you.

Step 3: Find your chat ID

Your chat ID is the number that tells a bot where to deliver its messages. The easiest way to find it is to use one of the ID bots in Telegram that reply with your numeric ID. Search for one with good reviews, send it a message and copy the number it gives you.

A personal chat ID is a positive number. Group chats use a negative number.

Step 4: Put your bot to work

With a token and a chat ID, you're ready to connect your bot to apps and services that support Telegram. Here are some popular uses:

  • Text message forwarding. Have your phone's texts delivered to Telegram.
  • Website alerts. Get notified when your website has a new order or a problem.
  • Reminders. Send yourself scheduled notes.
  • Smart home updates. Receive notices from devices at home.
  • Group helpers. Welcome new members or share announcements.

Plenty of tools let you do this with no programming at all.

Example: receive your texts in Telegram

One of the most useful things you can do with a personal bot is to bring your SMS into Telegram. With TeleSMS, you paste in your token and chat ID, tap the built-in test button, and you are done. Every new text then arrives in your bot's chat automatically, on your laptop, tablet or any other device that has Telegram.

Because the bot belongs to you, messages go straight from your phone to your chat. They don't pass through our servers. Our full SMS forwarding guide has more detail.

How to keep your bot safe

Your token works like a password. Anyone who has it can control your bot, so:

  • Don't post it online or include it in a screenshot.
  • Only enter it in apps you trust.
  • If you think it has leaked, send /revoke to @BotFather to get a new one.
  • Turn on two-step verification for your Telegram account.

It's also worth knowing that bots use ordinary Telegram cloud chats. Telegram's secret chats with end-to-end encryption are a separate feature designed for conversations between people.

Giving your bot a personality

BotFather can do more than create bots. Use these commands to add a finishing touch:

  • /setuserpic adds a profile picture.
  • /setdescription sets the text people see before they start the chat.
  • /setname changes the display name.

Pick an icon that stands out if you plan to have several bots, as it makes the right chat easy to spot.

A note for curious developers

If you would like to go further, Telegram's Bot API is free and well documented. You can send a message with one simple web request to the sendMessage method, which accepts up to 4096 characters of text. Telegram's documentation at core.telegram.org is an excellent place to begin.

Where to find your bot token again

It's easy to lose track of a token after setup. If you need it later, open your chat with @BotFather, send /mybots, choose your bot and open its API token option. You won't need to create a new bot.

If you're setting up a bot for the first time and something looks wrong, go through this short checklist:

  • Copy the whole token, including the part before and after the colon.
  • Check that no extra spaces were added at the start or end.
  • Make sure you opened your bot's chat and pressed Start.
  • Confirm you are using your own chat ID, and not the bot's username.

It's a good idea to give each bot a single job. One for your text messages, another for website alerts and a third for reminders will keep your notifications sorted, and you can mute one without affecting the others. Telegram's folders and pinned chats can then keep the most useful bots near the top of your list.

Bots can also work inside groups and channels, which is handy for clubs, small businesses and communities. For anything personal, such as your own text messages, a private chat is the better home.

Frequently asked questions

How many bots can I create? You can create several, each with its own name and token, and BotFather lists them under /mybots.

Does a Telegram bot cost money? Creating one with @BotFather is free.

Do I need to know how to code? Not to create a bot or to use it with apps such as TeleSMS.

Why doesn't my bot message me? Make sure you've opened its chat and tapped Start, and that the chat ID you entered is correct.

Can I delete a bot? Yes. Send /deletebot to @BotFather and choose the bot you want to remove.

Your new bot is ready to work for you. For a simple and genuinely useful first project, connect it to TeleSMS, and your texts will be waiting in Telegram wherever you are.