Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.useinvent.com/llms.txt

Use this file to discover all available pages before exploring further.

New to channels? Start with the Channels Overview to see the universal connect flow that every channel shares. This guide walks through the Telegram-specific steps on top of that flow.
Connecting Telegram puts your assistant inside a real Telegram bot. Anyone who finds your bot in Telegram search, opens its t.me/<botname> link, or taps a Start button in your marketing material lands in a chat that your assistant answers instantly, 24/7. Everything appears in the same Inbox as your other channels, with the same assistant, the same Knowledge, and the same Memory. Telegram does not use OAuth. Instead, it gives every bot a bot token that uniquely identifies and authenticates it. You generate the token with Telegram’s official @BotFather (a bot for creating bots) and paste it into Invent once. From then on the bot belongs to your workspace.

Before You Start

You need two things:
  1. A Telegram account to chat with @BotFather. Any personal Telegram account works; the bot you create is independent of the account that creates it, so this is not a long-term ownership decision. Use Telegram on your phone or web.telegram.org on the desktop, whichever is easier.
  2. A name and username for your bot. The username has to be globally unique across all of Telegram and must end in bot or _bot (for example, acme_support_bot). Have a couple of variants ready in case your first pick is taken.
Unlike WhatsApp or Instagram, there is no “professional account” requirement and no 24-hour messaging window on Telegram. Once a user has clicked Start on your bot, your assistant can message them at any time, as often as you want, with text, voice, images, files, or interactive buttons.

Step 1: Open the Telegram Connect Dialog

From your assistant’s Channels tab, find Telegram Bot in the list and click Connect. The Telegram connect dialog opens.
Empty Telegram Bot connect dialog with a + Connect Telegram button inside the Connection field
The dialog has one field:
  • Connection: the authenticated link to a Telegram bot, identified by its token. If this is your first Telegram connection, the dropdown is empty apart from a blue + Connect Telegram button you use to start the setup (covered in the next step). If you have already connected a Telegram bot for another assistant, your existing connections are listed here and you can reuse any of them, in which case you can skip to Step 5.
You can attach more than one Telegram bot to your workspace. After you add the first one, opening the Connection dropdown again shows all existing bots plus a + Connect Telegram button at the top to add another. Pick whichever fits this assistant’s use case.

Step 2: Open the Connection Form

Open the Connection dropdown and click + Connect Telegram. The connection form opens.
Empty Telegram connection form with Connection Name and Telegram Bot Token fields, plus Test Connection and Create Connection buttons
The form has two fields:
  • Connection Name (optional): a label you will see inside Invent (for example, “Acme Support Bot”). If you leave it blank, Invent uses the bot’s own Telegram name as the label.
  • Telegram Bot Token (required): the secret token issued by @BotFather, in the format 123456:ABCDEF1234abcdef1234ABCDEF1234abcdef. You will create this in the next step.
Leave the form open in your browser. We need the token before we can fill it in.
Click the small link icon (↗) next to the Telegram Bot Token label at any time to open t.me/BotFather in a new tab and jump straight into the bot creation flow.

Step 3: Create a Bot with @BotFather

Open Telegram (mobile, desktop, or web.telegram.org) and search for BotFather. Pick the verified result, the one with the blue checkmark next to the name. Tap Start to begin the conversation.
BotFather start screen on Telegram with the Start button at the top right and the bot's introduction message
There are many fake “BotFather” clones in Telegram search. Always pick the one with the blue verified checkmark, the one that says it has millions of monthly users. Pasting your real bot token into a fake support bot is the most common way Telegram bots get hijacked.

Step 3a: Send /newbot

Type /newbot and send it. BotFather replies asking for a display name for the new bot.
Sending the /newbot command to BotFather, with the autocomplete suggestion shown above the message composer

Step 3b: Pick a Display Name and Username

BotFather walks you through two prompts:
  1. Display name: the friendly name customers see at the top of the chat (for example, “Acme Enterprise Enquiry Bot”). Spaces and most characters are allowed. You can change this later from BotFather with /setname.
  2. Username: the globally unique identifier that becomes your bot’s t.me/<username> link. It must end in bot (or _bot), is case-insensitive, and cannot be changed once chosen. If your first pick is taken, BotFather rejects it with “Sorry, this username is already taken” and asks for another.
BotFather conversation showing the display name reply, a rejected username, an accepted username, and the success message that includes the bot token
When BotFather accepts both, it replies with a success message ending in “Use this token to access the HTTP API:” followed by the actual token.

Step 3c: Copy the Token

Tap (or click) the token to copy it to your clipboard. The format is always:
123456:ABCDEF1234abcdef1234ABCDEF1234abcdef
A short numeric prefix, a colon, and a long alphanumeric secret.
Treat the bot token like a password. Anyone who has it can read every message your bot receives and send messages on its behalf. Never paste it into a public chat, never commit it to a Git repository, never share it in a screenshot. If a token leaks, immediately go back to BotFather and run /revoke on the bot to rotate it; then update the connection in Invent with the new token.
While you are still in the @BotFather chat, this is also a good time to set the bot’s avatar (/setuserpic), about text (/setabouttext), and description (/setdescription). These show up on the bot’s profile and on the empty-chat splash screen the first time a customer opens your bot. None of them are required for the assistant to work, but a polished profile increases the rate at which visitors actually click Start.

Step 4: Create the Connection in Invent

Switch back to the Invent connection form you left open in Step 2.
Telegram connection form filled in with the connection name 'Acme Enterprise Enquiry Bot' and a masked Telegram bot token
  1. Connection Name: enter a label that will read well in the channel list a year from now. “Acme Enterprise Enquiry Bot” is better than “Test” or “Alice’s bot”.
  2. Telegram Bot Token: paste the token you copied from @BotFather. Invent masks it with dots as soon as you paste, so it is never visible in plain text on screen again.
  3. (Optional) Click Test Connection. Invent calls Telegram with the token and confirms that it is valid and that the bot is reachable. If anything is wrong (mistyped token, revoked token, bot deleted), the error surfaces here before you save anything.
  4. Click Create Connection.
Invent stores the connection in Settings → Connections, where you can rename it, rotate the token, or disconnect it at any time.
Invent encrypts the bot token at rest and never returns it in plain text after creation. If you forget the token, regenerate it with /revoke in @BotFather and update the connection.

Step 5: Pick the Bot

Back on the Telegram Bot connect dialog, your new connection is already selected.
Telegram Bot dialog with the Acme Enterprise Enquiry Bot connection auto-selected, ready to click Connect Channel
If you have multiple Telegram bots in your workspace, pick the one this assistant should own from the dropdown.
One bot, one assistant. A Telegram bot can only be bound to one assistant at a time. If two assistants need to share the same bot, transfer to human is usually a better pattern than splitting the bot. Binding a bot already attached to another Invent assistant overrides the previous binding and the new assistant takes over from the next message onwards.
Click Connect Channel. Behind the scenes Invent registers its webhook with Telegram so new messages arrive in your Inbox in real time, validates that the token is healthy, and turns the channel on. Telegram now shows up in the assistant’s Channels tab with an Enabled toggle, a Manage button, and the bot’s @username as its identifier.

Step 6: Send a Test Message

Open Telegram on your personal device, search for your bot’s username (or open t.me/<your_bot_username> from any browser and let it deep-link into the Telegram app), and tap Start. You should see your assistant reply within a second or two. The conversation also appears in your Inbox immediately, with the originating bot and the Telegram channel shown on the conversation. That is it, the assistant is live on Telegram.

Connecting More Bots

You can add additional Telegram bots to the same assistant at any time. From the Channels tab, click + Add another under the Telegram section and either:
  • Pick another bot from the existing connections list in the Connection dropdown, or
  • Connect a new bot by clicking + Connect Telegram in the dropdown, creating a fresh bot with @BotFather, and pasting its token into a new connection.
Each bot runs in parallel under the same assistant, sharing the same Instructions, Knowledge, Memory, and Actions. Conversations are tagged with the originating bot in the Inbox so your team always knows which brand or campaign a message belongs to. See Multiple Connections Per Channel for common patterns.

Reusing a Connection Across Assistants

Once a Telegram connection exists in your workspace, any assistant can pick it up from the Connection dropdown without re-entering the token. Set up a bot once, reuse it everywhere. Manage every connection centrally from Settings → Connections:
  • Rename a connection to keep the list readable as you add more.
  • Rotate the token: if you regenerate the bot token in @BotFather (with /revoke), open the connection in Invent, click Edit, paste the new token, and save. Channels bound to that connection start working again immediately.
  • Disconnect to remove the link entirely. Any assistant still using that connection stops sending and receiving until it is pointed at a new bot.

Troubleshooting

Three common causes:
  1. The token has whitespace or a stray character around it from the copy-paste. Re-copy the token directly from the @BotFather success message and paste it again.
  2. The token has already been revoked. Run /mybots in @BotFather, pick this bot, choose API Token, and verify that the visible token matches what you pasted. Use Revoke current access token to mint a fresh one if needed and update Invent with the new value.
  3. The bot was deleted in @BotFather. There is no recovery, you have to create a new bot, paste its token into a new Invent connection, and rebind the channel.
The most common reason is that another tool, automation, or script still owns the bot’s webhook. Telegram only delivers each update to one webhook URL at a time. Open Settings → Connections and click Reconnect on the Telegram connection: Invent re-registers its webhook and any old subscriber stops receiving messages.A second cause is that the bot was added to a Telegram group with privacy mode still on (the default). In groups, privacy-mode bots only see messages that mention them or reply to them. For one-on-one DMs, this does not matter, the bot always receives them. If you intend to use the bot in groups too, talk to @BotFather, run /setprivacy, pick the bot, and set privacy to Disable.
Telegram usernames are first-come, first-served and never released, even when a bot is deleted. Try variations: add your industry (acme_support_bot), your region (acme_eu_bot), or a year (acme_bot_2026). Keep it short, all-lowercase, and easy to dictate over the phone, since customers will type it into Telegram search.
Treat this as a security incident. Open @BotFather, run /mybots, pick the affected bot, choose API Token, then Revoke current access token. BotFather issues a new token and the old one is permanently invalidated. Open Settings → Connections in Invent, edit the Telegram connection, paste the new token, and save. The channel resumes service the moment the new token is saved; the leaked token can no longer be used by anyone.
Either the token was revoked in @BotFather without updating Invent, or the bot was deleted. Open Settings → Connections, find the Telegram connection, and click Reconnect (or Edit if you have a fresh token to paste). If the bot itself was deleted, you have to create a new one and rebind the channel.
This is a Telegram platform rule, not an Invent limitation. Bots cannot DM users who have not opened a chat with them first. Customers always have to tap Start (or send any message) at least once before the bot, and therefore the assistant, can reply or follow up. Use a t.me/<your_bot_username>?start=<payload> deep link in your marketing material, ads, or QR codes to make that first tap as smooth as possible.
Telegram supports only one active webhook per bot, so only one workspace can be bound to a given bot at a time. If a partner needs to manage the same bot from a different Invent workspace, share the token with them; the moment they bind it, your workspace’s webhook is replaced and stops receiving messages. To run two integrations in parallel, create a second bot with @BotFather and give the partner the new bot’s token instead.

Next Steps

Channels Overview

See the universal connection flow that every channel uses

Connections

Manage every authenticated link, including Telegram, in one place

Capabilities

See everything your assistant can send and receive on Telegram

Inbox

Manage every Telegram conversation alongside your other channels