Coder Social home page Coder Social logo

onyukito / telegram-chatgpt Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 25 KB

A customizable Telegram bot with a ChatGPT (or GPT4, bring your own API key) backend. You can configure the bot’s context and prompt in template settings.

License: GNU General Public License v3.0

Rust 100.00%

telegram-chatgpt's Introduction

A Telegram ChatGPT bot

flows.network Discord flows.network Twitter Create a flow

Deploy this function on flows.network, 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 that is created directly from the template.
  • The multimodal 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. 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.

telegram-chatgpt's People

Contributors

onyukito avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.