Skip to content
TGWAY
Channels & Bots STEP 42 / 99

How Telegram Bots Work and What They Can See

A bot is an ordinary Telegram account that a program answers for. You message it, something on somebody else's server reads what you sent, and a reply…

  • LevelL1
In this article
  1. smart_toy Three shapes the same thing takes
  2. settings Using them well
  3. At a glance
play_circle Video tip • Bots

A bot is an ordinary Telegram account that a program answers for. You message it, something on somebody else's server reads what you sent, and a reply comes back. That is the entire idea.

Which makes the useful question about bots a question of trust rather than of features: whose program is it, and what did you just hand it?

What you will be able to do

  • check_circle Find and start a bot, and use one inline in any chat.
  • check_circle Know what a bot can see in a private chat and in a group.
  • check_circle Judge whether a bot is worth trusting before you use it.
  • check_circle Stop one, and understand what stopping does not undo.
play_circle Official Telegram video short — bots and custom tools
1080p clip from @TelegramTips #257 • 0:10

A bot chat looks like any other chat, with buttons under the messages instead of only text.

smart_toy Three shapes the same thing takes

Most bots you talk to directly: open the chat, press start, use the commands or the buttons it offers. Anything with a command menu or a keyboard of buttons under a message is this kind.

Inline bots work anywhere without being in the chat. Type the bot's username followed by a search term in any conversation and it offers results you can insert — the sticker and image bots work this way, and nothing about the bot joins the chat.

Mini apps are bots that open a small web page inside Telegram. They look like apps and they are ordinary web pages with the same permissions any web page would have, which is worth remembering when one asks you for something.

shield
A bot cannot message you first Nothing reaches you from a bot you never started. If something bot-like arrives unprompted, it came through a group, a forward or a link somebody sent you — not from Telegram deciding to introduce you.
extension Interactive

Four questions worth asking

Not about what a bot does. About what it gets.

visibility In a private chat, everything you send it

cancel A chat with a bot is a chat with whoever runs it. Every message, photo and file goes to their server, and Telegram cannot tell you what they do with it afterwards.
cancel That includes anything you paste in. A password, a document or a private address given to a converter bot has left your control entirely.
check_circle It does not include your other chats. A bot sees its own conversation and nothing else in your account.

A bot is a stranger's program with a Telegram account. Useful, often excellent, and never something to hand a secret.

settings Using them well

  1. Open a bot from a link you trust The project's own site or channel, rather than a search result.
  2. Press start, then look at the command menu The menu button lists what it can do without guessing.
  3. Try an inline one Type a bot's username and a search term in any chat to insert a result without adding anything.
  4. Keep secrets out of bot chats Codes, passwords, recovery phrases, identity documents.
  5. Grant a group bot the narrowest rights that work And review them occasionally.
  6. Block and delete the ones you stopped using An abandoned bot chat is a door left open.
menu_book
Part of the beginner curriculum Step 86 — BotFather: creating your own bot

This page is using somebody else's bot. The curriculum step is being on the other side of it: registering one with BotFather, what a token is and why it must never leak, commands, and the permissions you are asking other people to grant you.

Summary

At a glance

  1. 1Bots are programs

    Run by other people on their own servers.

  2. 2What they see

    Only messages sent to them, unless they are group admins.

  3. 3Stop a bot

    Block it; what you already sent stays with its owner.

Share this guide

Send it to a friend who has the same question.

Telegram WhatsApp
More

Open on your phonePoint your phone camera here to open this guide.

Updated

Related articles

View all ›