Every Telegram bot needs an application registered on Telegram's own side first, this is a Telegram requirement for all bots, not something specific to CodeBlock Studio.
- Open Telegram and start a chat with @BotFather, Telegram's own official bot for creating and managing bots.
- Send
/newbotand follow its prompts, a display name, then a unique username ending inbot. - @BotFather replies with your bot's token, a long secret string that lets whoever holds it fully control that bot.
- Go to your Chat Bot project's Connection tab in CodeBlock Studio and paste the token in. It's validated directly against Telegram and encrypted before it's ever stored, the token itself is never saved in your browser.
Keeping your token safe
Your bot token is effectively the password to your bot, anyone who has it can send messages, read updates, and change its settings directly, bypassing CodeBlock Studio entirely. Never share it, paste it into a public repository, or post it anywhere public. If you ever suspect it's been exposed, message @BotFather, use /token to generate a new one (this invalidates the old one), and paste the new token into your project's Connection tab.
Replacing or disconnecting
From the Connection tab, use Replace Bot Token to switch to a different bot, or Disconnect Bot to remove it entirely, this permanently deletes the encrypted token from CodeBlock Studio and stops your flows from replying.
Tip: Telegram is the only supported platform right now, WhatsApp is planned for a future update. A flow you build today isn't tied to Telegram-specific syntax, so it's built to carry over once that lands.