Back to AI Q&A
How to configure Hermes Agent Telegram?

How to configure Hermes Agent Telegram?

AI Q&A Admin 134 views

The most reliable way to use Hermes Agent with Telegram is to create a bot with BotFather first, and then run the hermes gateway setup. The official Telegram documentation recommends an interactive configuration, which will let you fill in the bot token and the user ID allowed to access.

Basic steps

  1. Search for BotFather on Telegram.
  2. Send /newbot, create a bot and get a token.
  3. To get your Telegram user ID, you can use get_id_bot.
  4. Run hermes gateway setup and select Telegram.
  5. Start the hermes gateway and send a message to the bot for testing.

Why do you need to fill in allowed users?

Because after the bot token is leaked, someone else may control your bot. TELEGRAM_ALLOWED_USERS can limit who can talk to the Hermes Agent. Add multiple IDs as needed as your team uses them.

In a word: BotFather takes the token, get_id_bot takes the user ID, and hermes gateway setup writes the configuration.

Official open source address: https://github.com/NousResearch/hermes-agent; Official document entry: https://hermes-agent.nousresearch.com/.

Recommended Tools

More