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.
- Host: GitHub
- URL: https://github.com/hardworking-toptal-dev/marketing-bot
- Owner: hardworking-toptal-dev
- License: gpl-3.0
- Created: 2024-03-28T22:24:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T22:26:34.000Z (about 2 years ago)
- Last Synced: 2025-03-28T15:50:03.195Z (about 1 year ago)
- Topics: rust
- Language: Rust
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
A Telegram bot powered by Claude
[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.

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)

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.
[
](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.
[
](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.