[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.Add the Telegram bot token while deploying Hermes Agent on ORIV.
Prerequisites
- An active ORIV account.
- Access to the Hermes Agent deployment flow in ORIV.
- A Telegram account.
- The Telegram app is installed on your phone or desktop.
Step 1: Open BotFather in Telegram
Open Telegram and search for @BotFather. BotFather is Telegram’s official bot for creating and managing bots. You can also review Telegram’s official BotFather information in the Telegram BotFatherdocumentation.- Open Telegram.
- Search for @BotFather.
- Open the verified BotFather chat.
- Click Start if you have not used BotFather before.
Step 2: Create a new Telegram bot
In the BotFather chat, send the following command:- Bot name: This is the display name users see in Telegram. Example: ORIV Hermes Assistant.
- Bot username: This must be unique and must end with
bot. Example:oriv_hermes_assistant_bot.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.Send /newbot in BotFather, then enter the bot display name and bot username.
Step 3: Copy the Telegram bot token
After the bot is created, BotFather shows a Telegram bot token. The token usually looks similar to this example:[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.Copy the Telegram bot token from BotFather and keep it secure.
Step 4: Find your Telegram user ID
Hermes can restrict Telegram access to allowed users. If the ORIV setup form asks for a Telegram user ID, add the Telegram numeric ID for the person who should be allowed to control Hermes.- Open Telegram.
- Search for @userinfobot or another trusted Telegram user ID bot.
- Start the bot.
- Copy your numeric Telegram user ID.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.Send /start to the bot to confirm the Telegram user ID or pairing details.
Step 5: Add the Telegram bot token while setting up Hermes on ORIV
Go back to ORIV and continue the Hermes deployment flow. During setup, choose Agentic, select Hermes Agent, and open the optional Telegram messaging section.- Open your ORIV dashboard.
- Start the agent deployment flow.
- Select Agentic.
- Select Hermes Agent.
- Go to the optional Telegram or messaging section.
- Paste the Telegram Bot Token you copied from BotFather.
- Add your Telegram User ID if the field is available or required.
Step 6: Complete the Hermes deployment
After adding the Telegram bot token, continue the remaining Hermes setup steps in ORIV. Review the selected server, plan, domain, and required environment values. Then click Next and click Create to start the deployment. ORIV will provision the server and install Hermes Agent. Wait until the setup finishes before testing Telegram. If the deployment is still running, Telegram may not reply yet.Step 7: Start and test the Telegram bot
After the Hermes deployment is complete, open your new Telegram bot and send:[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.Send /start and a short test message to confirm the Hermes Telegram connection is working. And that’s it this is how you can create a Telegram Bot and connect It with Hermes on ORIV. If you want the full deployment walkthrough to deploy your AI Agent with Hermes Agent, read this documentation.
Manage the Telegram connection after deployment
The setup-time Telegram fields are the recommended way to connect Hermes during deployment. After Hermes is deployed, you can manage messaging configuration from the Hermes dashboard or available channel settings if your deployment exposes them. Use the post-deployment settings only for maintenance tasks such as replacing a bot token, adjusting allowed Telegram users, or reconnecting the channel after changing the bot in Telegram.Troubleshooting
BotFather says the username is unavailable
Choose a different bot username. Telegram bot usernames must be unique and must end withbot.
Hermes does not reply in Telegram
- Confirm the Hermes deployment has finished.
- Send
/startto the bot first. - Check that the Telegram bot token was copied correctly.
- Confirm your Telegram user ID is allowed if access restrictions are enabled.
- Restart or reconnect the Telegram channel from the Hermes settings if available.
