Docs

Integrations

Connect Telegram

Use a bot your workspace owns to ask codebase questions, act on proposals, and deliver messages to linked teammates and connected groups. A workspace owner or admin connects the bot. Each teammate links their own Telegram account.

Create your bot

  1. Open @BotFather in Telegram. Send /newbot and choose a name and username.
  2. Send /setjoingroups, select your bot, and choose Enable.
  3. Leave /setprivacy at Enabled. Keep the bot as an ordinary group member, because Telegram gives bot admins access to all group messages.
  4. In Gleamrun, open Workspace Settings → Integrations → Telegram. Copy the token BotFather returns after /newbot. Paste it into Bot token and select Connect bot.

Keep the token private. Gleamrun encrypts it and checks that the account is a bot, that groups are allowed, and that privacy mode is enabled. See Telegram’s BotFather guide for bot management.

Use the production workspace
Telegram setup is unavailable in PR previews. A bot has one webhook, so connecting it to a preview would take its incoming messages away from production.

Connect a group

  1. Select Connect a group in the Telegram integration.
  2. Read the audience warning and enable I understand.
  3. Open the generated link and choose your Telegram group. The link works once and expires after 10 minutes.
  4. Refresh the Gleamrun settings page and check that the group appears under Groups in Gleamrun.

Adding the bot by hand does not connect a group. Until a valid connect link binds it, the bot gives one setup notice and stays inactive there. Generate a new link if the old one expires.

  1. Select the bot’s @username in the Telegram integration to open its private chat. Press Start, or send /start.
  2. Select Link your account in Telegram. Sign in to Gleamrun as the account you want to link, then select Link My Account.
  3. Return to Telegram. Start each workspace’s bot separately so it can send you direct messages.

Your Telegram account link identifies you across workspace bots. Each bot separately records whether you started or blocked it. Workspace membership still controls access. Review or remove your link in User Settings → Account → Telegram.

Ask questions

After linking your account, send a question in the bot’s private chat. In a connected group, mention its @username on every question and follow-up, including replies to the bot’s answer. Untagged group replies do not start work. A command addressed to this bot also works.

The bot uses your workspace access to investigate and reply in the conversation. When group answers are enabled, mentions in the same group or forum topic share a conversation. Teammates can continue that discussion. With DM-only answers, each asker’s follow-ups stay private. To continue an earlier group answer privately, reply to it and mention the bot. In a forum, stay in the same topic.

In a private chat, send /new to start a new conversation, or /new your question to ask immediately in the new one.

Send a message from an agent

In a read-only session or a task, name the teammate or connected group and the message to send. For example: “Send the release summary to our Engineering group on Telegram.” The agent checks the destination and reserves a delivery. It confirms success after Telegram accepts the message.

  • Pending: the message is queued. Wait for the delivery result.
  • Delivered: Telegram accepted the message. This does not confirm that someone read it.
  • Not reachable: the recipient must start or unblock this workspace’s bot. Check membership and account linking if that does not help.
  • Failed: the delivery stopped. The result includes a reason.
  • Unknown: Telegram might have accepted the message before the connection failed. Check the chat before taking any further action. The agent never resends it automatically.

Messages support formatted text. Images must be hosted by Gleamrun and use a caption of up to 1024 characters. Text messages support up to 4096 characters.

Choose DM-only answers

The DM-only answers setting appears under each connected group. It configures where answers to group questions go: the asker’s private chat instead of the group. The asker must start the workspace bot first.

DM-only answers cover answers and cards
With DM-only answers on, proposal cards also go to the asker’s private chat. The setting does not redirect an explicit agent request to post a message in a group.

Act on proposals

When an answer proposes work, the bot posts each proposal as its own message under the answer, with buttons.

  • Task: Create & launch creates the task and starts an agent on it. Create only creates the task.
  • Project: Create project, Update project or Archive project applies the change.
  • Skill: Add skill or Update skill saves it to the stack.
  • Prompt: Send prompt sends it to the agent session it names.

Every card has Dismiss and a Review in Gleamrun link. After you choose, the card changes to show the result, with a link to what was created. If the agent revises a proposal, the existing card changes. No second card is posted.

Only linked workspace members can use the buttons. For anyone else, a tap shows a short notice and changes nothing. Further taps have no effect while the first runs, so one tap creates one task. Tasks created from Telegram count toward the Free plan’s weekly limit. Workspaces with zero data retention do not get cards, because Gleamrun does not store the proposals.

Reconnect a bot that needs attention

When the integration shows Needs reconnect, read the banner’s repair instructions. An owner or admin follows those instructions, then selects Reconnect. For a revoked token, select Replace token, obtain a token for the same bot in BotFather, and select Save token. A token for a different bot is refused.

Gleamrun checks bot health every 15 minutes. It detects token revocation, privacy or group-setting changes, webhook replacement, and repeated webhook delivery errors. Delivery stops while the bot needs reconnection.

Understand who can read messages

Everyone in a connected group can read messages posted there, including people who are not Gleamrun members. Only link a group whose audience may see the information you send. Privacy mode limits incoming group updates. It does not make outgoing group messages private.

Gleamrun stores delivery identifiers and statuses without message text in the delivery table. The delivery queue temporarily holds text and image URLs, then removes the payload when the job completes or fails. Telegram stores messages on its own servers. This integration does not change Telegram’s retention policy.

Return to the integrations overview.