Hivra
Free tool. No signup.

Connect your AI agent to Telegram or Discord

To talk to an AI agent from your phone, it needs a bot account on the chat app. Making that account is free on both Telegram and Discord. What trips people up is a short list of details: which token goes where, which switch to turn on, and which id to allow.

Pick Telegram or Discord and the wizard walks you through the steps in order. On Telegram you talk to BotFather, copy the token, find your own user id and decide what to do about groups. On Discord you create an application, turn on the Message Content intent, tick the permissions the bot needs, and get an invite link with the permission number worked out for you.

A token checker tells you whether what you copied has the right shape. It runs in your browser and sends nothing. The last step shows where Hermes and OpenClaw read the token, with the exact command or file from their own docs, and says so plainly where we could not confirm one.

Where do you want to talk to your agent?

Step 1 of 5: Create the bot

You make a Telegram bot by talking to another bot, BotFather. It is run by Telegram.

  1. In Telegram, search for @BotFather and open the chat.
  2. Send /newbot.
  3. Give it a name, which people see, then a username. The username must end in bot.
  4. BotFather replies with the token. It looks like digits, a colon, then a long string.

Telegram's docs say anyone with the token can control the bot, so keep it secret. To change the name, picture or settings later, send /mybots and pick your bot.

If a Telegram token leaked
  1. Open BotFather in Telegram, send /revoke and pick the bot. That is the command for cancelling a token. If your BotFather does not offer it, send /token instead.
  2. Telegram's own docs name /token for a compromised or lost token: it generates a new one, and its tutorial says a token can be revoked at any time through BotFather. We could not find /revoke on Telegram's documentation pages, so check that the old token no longer works.
  3. Put the new token in your agent's config, restart it, and delete the old one from every file, chat and note it was in.
  4. If the token was ever in a public repository, treat it as leaked even if you deleted it later. Git history keeps it.

Assumptions: Telegram and Discord steps come from their own documentation, and where each agent reads the token comes from that agent's docs, all last checked November 2026. The token check reads shape only, because neither platform publishes a full token format. A token that passes can still be wrong, and one that fails can still work.

Where these steps come from

Telegram's side comes from Telegram's own bot pages. BotFather and /newbot, the warning that anyone with a token can control the bot, /token for a compromised token, and the privacy mode behaviour are all on the bot features page and the bots FAQ. The Bot API page shows how a token is used in a request address. Sources: Telegram: bot features, Telegram: bots FAQ, Telegram: Bot API.

Discord's side comes from the Developer Portal documentation: creating an application and resetting the token, the privileged intents and the 100-server threshold, the bot authorization address with its client_id, scope and permissions parameters, and the permissions table. The permission bit values in the invite builder are the documented ones, and the tests hold every one of them to that table. Sources: Discord: getting started, Discord: gateway and intents, Discord: OAuth2 and bot authorization, Discord: permissions.

The token checker is a rule of thumb, not a specification. Telegram does not document a token length (its own example has 34 characters after the colon), and Discord does not document a token format at all. So the checker says the shape is right, unusual or wrong, and never says a token is valid. Only the agent connecting, or the platform, can tell you that.

Where each agent reads the token comes from its own docs. Hermes: the .env file and the gateway setup command. OpenClaw: a channels add command, a config key and an environment variable for Telegram, and an environment variable for Discord. Where a page did not show us an exact name, the wizard says to see the agent's own docs and does not guess. We could not find the /revoke command on Telegram's own pages, which name /token, so the page says so. Sources: Hermes: Telegram setup, Hermes: Discord setup, OpenClaw: Telegram setup, OpenClaw: Discord setup, OpenClaw: pairing.

Nothing you type is sent anywhere. The page address carries only the platform and the ticked permissions. The Application ID and the token are never in it, are not stored, and leave the page only if you copy them out yourself. Both agents can run on a machine of your own, which is a fair choice, and the commands here are the same there.

Last checked November 2026.

Worked examples

Invite link with the minimal permissions

Inputs: Application ID 123456789012345678 (made up), the five baseline permissions: view channels, send messages, read message history, embed links, attach files.

https://discord.com/oauth2/authorize?client_id=123456789012345678&scope=bot%20applications.commands&permissions=117760

The permissions number is 117760, the same value Hermes' docs list for this set. Open the link, choose your server, and the bot joins with exactly these five permissions.

Invite link with reactions and threads

Inputs: The same application, plus add reactions, create public threads and send messages in threads.

https://discord.com/oauth2/authorize?client_id=123456789012345678&scope=bot%20applications.commands&permissions=309237763136

The number grows to 309237763136, the value Hermes' docs list for its recommended set. Thread permissions use bits above 32, which is why the sum needs 64-bit arithmetic and why the tool does not use ordinary 32-bit maths.

Checking a Telegram token's shape

Inputs: A made-up token: ten digits, a colon, then 35 letters.

The shape is right.

The shape passes. The checker also says that passing proves nothing about whether the token is live, because it never contacts Telegram.

Cite this page

Hivra, "Bot Connect Wizard", https://hivra.cloud/tools/telegram-discord-bot-setup, facts last checked November 2026.

Source: <a href="https://hivra.cloud/tools/telegram-discord-bot-setup">Hivra</a>, Bot Connect Wizard, facts last checked November 2026.

Common questions

How do I create a Telegram bot?

Open a chat with @BotFather in Telegram and send /newbot. It asks for a name and then a username, which must end in bot. When you finish it gives you the bot's token. Telegram's docs say anyone with the token can control the bot, so keep it private. To change the bot's name, picture or settings later, send /mybots and pick the bot.

What does a Telegram bot token look like?

Digits, a colon, then a string of letters, digits, underscores and hyphens. Telegram's own docs show 110201543 then a colon then 34 characters. The checker on this page treats 35 characters after the colon as the expected length. Telegram does not publish a fixed length, so a token that differs may still work. The checker only reads the shape. It cannot tell you whether a token is live.

How do I make a Discord bot and get its token?

In the Discord Developer Portal, create an application. New applications already have a bot user. Open the Bot page, choose Reset Token and copy the result. Discord shows it once, so store it somewhere safe straight away, such as a password manager. Then use the invite link step on this page to add the bot to your server.

Which Discord intents does an AI agent need?

Message Content. Without it Discord sends empty message text for most guild messages, with exceptions for messages that mention the bot and direct messages. Both Hermes and OpenClaw tell you to turn it on. Server Members is needed if you allow people by username or by role. Presence is optional. All three are switches on the Bot page of the Developer Portal. While a bot is in fewer than 100 servers you only have to switch them on. Past that, Discord requires verification and approval for each.

How do I build the Discord invite link?

Use the authorize address with your Application ID as client_id, the scope bot, and a permissions number that is the sum of the permission bits you want. The tool above does the sum. The link it builds uses scope=bot%20applications.commands, which is the bot scope plus the slash commands scope that Hermes and OpenClaw both list. The Application ID is on the General Information page, not on the Bot page.

What if my bot token leaked?

Replace it at once. On Telegram, send /revoke to BotFather and pick the bot. Telegram's docs name /token for a compromised token, so use that if /revoke is not offered. On Discord, reset the token on the Bot page. Then put the new token in your agent, restart it, and remove the old one from everywhere it was saved. A token that was ever in a public repository counts as leaked even if you deleted it, because the history keeps it.

How do I find my Telegram or Discord user id?

Discord: turn on Developer Mode under Settings, then Advanced, and right-click your name and choose Copy User ID. Telegram: Hermes' guide suggests messaging a bot such as @userinfobot, which replies with your numeric id. Those are third-party bots, not Telegram's, so use them only for this and never send them a token. Agents use the id as an allowlist, so only you can talk to the bot.

Why does my Telegram bot ignore messages in a group?

Privacy mode. Telegram turns it on by default for every bot, except bots that are admins of the group. With it on the bot sees commands addressed to it and replies to its own messages, not the rest. To change that, send /mybots to BotFather, pick the bot, then Bot Settings, then Group Privacy, and turn it off. Telegram says the bot must be re-added to the group for the change to take effect. Making the bot a group admin also works. Only do either if the agent needs to read everything said in the group.

Is it safe to type a token into this page?

The page does not send it anywhere. The check runs in your browser, the token is not stored and it never goes in the page address. Even so, treat a real token as a password. If you would rather not type it at all, paste a made-up one with the same shape to see how the checker behaves, and put the real one straight into your agent's own setup.

When you need a computer that stays on

If you want the computer to stay on after you leave your desk, Hivra offers a managed computer starting at $9.99 a month for 2 vCPU and 4 GB of RAM. A paid Hivra Cloud computer stays on and is not paused for inactivity. The plan does not include AI usage. Bring your own account or key where the agent supports it, or pay with Hivra credits. Claude Code can use your own Anthropic sign-in or Hivra credits. There is a 7-day money-back guarantee on card payments.

Hivra is independent and is not affiliated with Telegram, Discord, Nous Research or OpenClaw.