An open API service indexing awesome lists of open source software.

https://github.com/hardworking-toptal-dev/marketing-bot

A customized Telegram bot with a Claude (Bring your own API key) backend. You can configure the bot's context and prompt in template settings.
https://github.com/hardworking-toptal-dev/marketing-bot

rust

Last synced: about 1 year ago
JSON representation

A customized Telegram bot with a Claude (Bring your own API key) backend. You can configure the bot's context and prompt in template settings.

Awesome Lists containing this project

README

          

#

A Telegram bot powered by Claude




flows.network Discord


flows.network Twitter


Create a flow

[Deploy this flow function on flows.network](https://flows.network/flow/createByTemplate/telegram-claude), and you will get a Telegram bot that uses [Claude](https://www.anthropic.com/index/introducing-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](https://t.me/flows_claude_test_bot), which is created from the template without any change.

image

The example in the above image asks Claude to generate code comments.

## Prerequisites

* You will need to bring your own [Claude key](https://www.anthropic.com/earlyaccess).
* 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](https://telegram.me/BotFather).

## Deploy your Telegram Claude bot in 3 steps

1. Create a bot from a template
2. Add your Claude API key
3. Add the telegram bot token

### 1 Create a bot from a template

[**Just click here**](https://flows.network/flow/createByTemplate/telegram-claude)

image

Here you can see three variables. You can customize the `system_prompt` variable to prompt Claude.

Click on the **Create and Build** button.

### 2 Add your Claude API key

You will now set up Claude integration. Click on **Connect**, and enter your key.

[image](https://github.com/flows-network/telegram-claude/assets/45785633/c5b42af7-58c0-4454-a6e2-22ecdd9d9d3e)

Close the tab and go back to the flow.network page once you are done. Click on **Continue**.

### 3 Add the Telegram bot token

You will now set up Telegram integration. Enter your Telegram token here.

[image](https://github.com/flows-network/telegram-claude/assets/45785633/805f78b0-ca9b-476d-8ec2-1e5763c0edf5)

Click on **Deploy** button.

## Give it a try.

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.