telegram-llm

telegram-llm

A Telegram LLM bot written in Rust

Stars: 65

Visit
 screenshot

A Telegram LLM bot that allows users to deploy their own Telegram bot in 3 simple steps by creating a flow function, configuring access to the Telegram bot, and connecting to an LLM backend. Users need to sign into flows.network, have a bot token from Telegram, and an OpenAI API key. The bot can be customized with ChatGPT prompts and integrated with OpenAI and Telegram for various functionalities.

README:

A Telegram LLM bot

flows.network Discord flows.network Twitter Create a flow

Try this simple 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 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.

1 Create a flow function

Just fork this repo to your own GitHub account.

Then, from 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. If you do not already have one, sign up here.

  • 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.

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

image

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.

image

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

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.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for telegram-llm

Similar Open Source Tools

For similar tasks

For similar jobs