Deploy this flow function on flows.network, and you will get a Telegram bot that uses Claude to respond to every question in your Telegram DM or channel/group. To try it yourself, you can chat with a demo Telegram bot, which is created from the template without any change.
The example in the above image asks Claude to generate code comments.
- You will need to bring your own Claude key.
- You also need a bot token to access the Telegram API. If you don't already have one, go to Telegram to get a bot token from @botfather.
- Create a bot from a template
- Add your Claude API key
- Add the telegram bot token
Here you can see three variables. You can customize the system_prompt
variable to prompt Claude.
Click on the Create and Build button.
You will now set up Claude integration. Click on Connect, and enter your key.
Close the tab and go back to the flow.network page once you are done. Click on Continue.
You will now set up Telegram integration. Enter your Telegram token here.
Click on Deploy button.
As soon as the flow function's status becomes ready
and the flow's status becomes running
, the Telegram Claude bot goes live. Go ahead and send a private message to the bot! You can also invite this bot to your channel/group.