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

https://github.com/bmorphism/telega

absurd wasm32-wasi flow connecting any components supported as cdylib
https://github.com/bmorphism/telega

Last synced: about 1 year ago
JSON representation

absurd wasm32-wasi flow connecting any components supported as cdylib

Awesome Lists containing this project

README

          

#

A Telegram ChatGPT bot




flows.network Discord


flows.network Twitter


Create a flow

[Deploy this function on flows.network](https://flows.network/flow/createByTemplate/Telegram-ChatGPT), and you will get a Telegram bot that uses ChatGPT to respond to every question in your Telegram DM or channel/group automatically.

Try a couple of Telegram bots on flows.network yourself!

* This is a [simple ChatGPT bot](https://t.me/flows_network_gpt_bot) that is created directly from the template.
* The [multimodal assistant bot](https://t.me/flows_english_assistant_bot) is based on this template. It can recognize text on uploaded pictures using flows.network's built in OCR service. It also has several task prompts already set up as slash commands.

## 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)

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

[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 Telegram bot goes live. Go ahead and send a private message to the bot! You can also invite this bot to your channel/group.