Telegram Integration
Deploy Hermes Agent as a Telegram bot to bring autonomous AI to the messaging platform used by over 800 million people worldwide.
What is Hermes Agent for Telegram?
Hermes Agent for Telegram is a deployment mode where the autonomous AI operates as a Telegram bot. Users interact with Hermes through direct messages or group chats, leveraging Telegram's rich messaging features including markdown formatting, file sharing, and inline queries.
Setup Steps
1. Create a Bot
Message @BotFather on Telegram. Use /newbot, choose a name and username, and receive your API token.
2. Configure Hermes
Add your Telegram token to Hermes' configuration file. Set webhook URL or enable polling mode.
3. Start the Agent
Launch Hermes with the Telegram adapter enabled. The bot comes online and begins responding to messages.
Features
Direct Messages
One-on-one conversations with full context.
Group Support
Mention-triggered responses in groups.
File Handling
Process documents, images, and audio.
Inline Mode
Query from any chat without adding the bot.
Related Integrations
Frequently Asked Questions
Do I need a Telegram Bot API token?
Yes. You create a bot through BotFather on Telegram, which gives you an API token. Hermes uses this token to send and receive messages.
Can Hermes handle group chats?
Yes. Hermes can be added to groups and responds to mentions or specific trigger words. Group context is preserved in persistent memory.
What about inline queries?
Hermes supports inline mode, allowing users to query the agent from any chat by typing @your_bot query without adding it to the group.
Is webhook or polling better?
Webhooks are recommended for production as they are more efficient. Polling works well for development and local testing without requiring a public URL.