Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flows-network/telegram-llm
A Telegram LLM bot written in Rust
https://github.com/flows-network/telegram-llm
automation chatgpt gpt-3 gpt4 telegram-bot
Last synced: 6 days ago
JSON representation
A Telegram LLM bot written in Rust
- Host: GitHub
- URL: https://github.com/flows-network/telegram-llm
- Owner: flows-network
- License: gpl-3.0
- Created: 2023-03-19T14:19:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-07T15:59:16.000Z (3 months ago)
- Last Synced: 2024-08-07T19:09:51.459Z (3 months ago)
- Topics: automation, chatgpt, gpt-3, gpt4, telegram-bot
- Language: Rust
- Homepage: https://flows.network/
- Size: 41 KB
- Stars: 65
- Watchers: 3
- Forks: 21
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
A Telegram LLM bot
Try this [simple bot](https://t.me/flows_network_gpt_bot) created from this template.
## Deploy your Telegram bot in 3 simple steps
1. Create a flow function
2. Configure the flow function to access the Telegram bot
3. Configure the flow function to access an LLM backend### 0 Prerequisites
You will need to sign into [flows.network](https://flows.network/) from your GitHub account. It is free.
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).
### 1 Create a flow function
Just fork this repo to your own GitHub account.
Then, from [flows.network](https://flows.network/), you can "Create a Flow" and select your forked repo.
It will create a flow function based on the code in your forked repo.Click on the "Advanced" button to see configuration options for the flow function.
### 2 Configure the flow function to access the Telegram bot
## Prerequisites
* You will need to bring your own [OpenAI API key](https://openai.com/blog/openai-api). If you do not already have one, [sign up here](https://platform.openai.com/signup).
* 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 ChatGPT bot in 3 steps
1. Create a bot from a template
2. Add your ChatGPT API key
3. Add the telegram bot token### 1 Create a bot from a template
[**Just click here**](https://flows.network/flow/createByTemplate/Telegram-ChatGPT)
Here you can see three variables. You can customize the `system_prompt` variable to prompt ChatGPT.
Click on the **Create and Build** button.
### 2 Add your OpenAI API key
You will now set up OpenAI integration. Click on **Connect**, and enter your key.
[](https://user-images.githubusercontent.com/45785633/226564674-902933b5-8ff3-4724-93e3-2b2f67dc0b9a.png)
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 Telegram bot goes live. Go ahead and send a private message to the bot! You can also invite this bot to your channel/group.