How to Integrate Telegram with Hermes
This guide will walk you through connecting your Telegram bot to your Hermes AI agent. Once integrated, you can interact with your AI directly from Telegram.
Prerequisites
Before you begin, ensure you have:
- An active Hermes VPS
- A Telegram account
- Your Hermes agent already set up (if not, complete the Hermes Agent Setup Guide first)
Step 1 : Create a Telegram Bot via BotFather
- Open Telegram and search for @BotFather.

- Send the command
/newbotto start creating a new bot.

- Choose a name for your bot (e.g.,
My Assistant AI).

- Choose a username for your bot. Important: The username must end with the word
bot(e.g.,my_assistanceAI_bot).

- Save your bot token. BotFather will send you a message with your bot's token (e.g.,
1234567890:ABCdefGHIjklMNOpqrsTUVwxyz). Keep this token secure, you'll need it in Step 3.

t.me/my_assistantAI_bot) to open your bot and send it a test message later.Step 2 : Get Your Numeric Telegram ID
To ensure only you can control your Hermes agent, you need your personal numeric Telegram User ID:
- Search for @userinfobot in Telegram.

- Send any message to receive your exact numeric ID (e.g.,
987654321). Then, copy your numeric ID.

Step 3 : Configure Hermes on Your VPS
- SSH into your Hermes VPS.
- Run setup command:
hermes gateway setup - When prompted, select platform and choose Telegram from the list.

- Enter bot token and paste the token you saved from @BotFather.

- Enter your user ID and paste the numeric ID you got from @userinfobot.

- Continue through the remaining prompts, configure other settings according to your preferences.
Step 4 : Test Your Connection
- Open Telegram and find your bot (use the link from BotFather or search its username).

- Send
/startor send any message to the bot. Wait for a response. If everything is configured correctly, your Hermes agent will reply.

π Related Articles
- How to Set Up Your Hermes Agent
- How to Access the Hermes Dashboard Locally
- Hermes VPS: Essential Command Guide
Need Further Assistance?
If you face any issues or need assistance, donβt hesitate to reach out β our support team is always ready to help!
π§ Need help? Submit a Support Ticket
π¬ Chat with us on Live Chat via our website
Updated on: 24/07/2026
Thank you!