What You’ll Need
Before you start, make sure you have:- A Telegram account (any free account works)
- The Telegram app installed on your phone or desktop, or access to Telegram Web
- A running Suji instance (see Create Your First Instance if you haven’t set one up yet)
Create a Telegram Bot
Every Telegram bot is created through BotFather, Telegram’s official tool for registering and managing bots. You’ll chat with BotFather like a normal Telegram conversation.Open BotFather
Open Telegram and search for
@BotFather in the search bar, or click this link directly: @BotFather.BotFather is verified by Telegram and has a blue checkmark next to its name. Make sure you’re messaging the real BotFather and not an impersonator.Start a conversation
Click Start (or type
/start) to begin interacting with BotFather. It will reply with a list of available commands.Create a new bot
Type
/newbot and send it. BotFather will ask you two things:-
A display name for your bot — This is the name users see in chats. It can be anything, like
My Store AssistantorAcme Support Bot. You can change this later. -
A username for your bot — This is the unique
@usernamethat people use to find your bot. It must end inbot(for example:my_store_bot,AcmeSupportBot, oracme_help_bot). Usernames are case-insensitive and cannot be changed after creation.
Copy the bot token
After you choose a valid username, BotFather will reply with a congratulations message that includes your bot token. It looks something like this:The token is made up of two parts separated by a colon: a numeric bot ID and an alphanumeric secret string. Copy the entire token — you’ll paste it into Suji in the next section.
Configure privacy mode (for group chats)
By default, Telegram bots in group chats can only see messages that are either directed at them (using
/commands) or replies to their messages. This is called privacy mode, and it’s enabled by default.If you want your bot to read and respond to all messages in a group chat (not just commands and replies), you need to disable privacy mode:- Send
/setprivacyto BotFather - Select your bot from the list
- Choose Disable
If your bot will only be used in direct messages (one-on-one chats), you can skip this step. Privacy mode only affects group chat behavior.
Connect to Suji
Now that you have a bot token, connect it to your Suji instance.Go to your instance
Open the Suji dashboard and navigate to the instance you want to connect. Click the Connectors tab.
Enter the bot token
Paste the bot token you copied from BotFather into the
botToken field. Make sure there are no extra spaces before or after the token.Verify the Connection
Once the connector shows Connected, test it out:- Open Telegram and search for your bot by its
@username - Click Start to begin a conversation
- Send any message — your OpenClaw agent should reply
Troubleshooting
Bot not responding to messages
Bot not responding to messages
If your bot isn’t replying to messages:
- Check that the instance is running — Open your instance in the Suji dashboard and confirm it shows a Running status. If it’s stopped or in an error state, the bot can’t process messages.
- Verify the bot token — Make sure you pasted the full token correctly. Even a single missing character will prevent the connection from working.
- Check the connector status — The Connectors tab should show Connected. If it shows an error, try deleting and re-adding the connector.
- Look at instance logs — Check the instance logs in the Suji dashboard for any error messages that might indicate what’s going wrong.
- Make sure you started the bot — You need to press Start in Telegram (or send
/start) before the bot can communicate with you. This is a Telegram requirement for all bots.
Connector shows 'Error' status
Connector shows 'Error' status
An error status usually means the bot token is invalid or has been revoked. To fix this:
- Open Telegram and go to @BotFather
- Send
/mybotand select your bot - Check that the bot still exists and is active
- If needed, send
/revoketo generate a new token (this will invalidate the old one) - In the Suji dashboard, delete the old connector and create a new one with the fresh token
Messages are delayed
Messages are delayed
Some delay between sending a message and receiving a reply is normal — your OpenClaw agent needs time to process the message and generate a response. However, if delays are consistently long:
- Check your instance’s resource usage — High CPU or memory usage can slow down response times. You may need to upgrade to a plan with more resources.
- Check for network issues — Telegram’s servers may occasionally experience slowdowns. Try again after a few minutes.
- Review your agent configuration — Complex system prompts or large knowledge bases can increase response times.
Bot doesn't respond in group chats
Bot doesn't respond in group chats
If your bot works in direct messages but ignores messages in group chats, privacy mode is likely still enabled. By default, bots in groups can only see commands (messages starting with
/) and direct replies to the bot.To fix this:- Send
/setprivacyto @BotFather - Select your bot
- Choose Disable
- Remove the bot from the group and re-add it — this step is required for the change to take effect in existing groups
Token revoked or need to regenerate
Token revoked or need to regenerate
If your bot token has been compromised or you need a new one for any reason:
- Open @BotFather in Telegram
- Send
/revoke - Select the bot you want to revoke the token for
- BotFather will generate a new token and invalidate the old one immediately
- Delete the old connector in the Suji dashboard
- Add a new Telegram connector with the new token