Giter VIP home page Giter VIP logo

rabilrbl / chatbot-telegram Goto Github PK

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

ChatGPT for Telegram takes messages from users and replies like a bot generated from ChatGPT. It also has the ability to generate images for messages prefixed with "/image" and to generate code with messages prefixed with "/code".

License: Creative Commons Attribution Share Alike 4.0 International

Dockerfile 1.83% JavaScript 98.17%
chatgpt chatgpt-api openai-api telegram-bot

chatbot-telegram's Introduction

ChatBot Telegram

Description

This is a simple chatbot for Telegram that uses GPT-3 Model from OpenAI. It is based on the Telegram Bot API and Telegraf.

Usage and Commands

  • Send a text message to the bot - It will reply with a message generated by GPT-3.

  • /start - Start the bot.

  • /help - Show help.

  • /image <text> - Generate image from DALL-E based on text.

  • /code <code comments> - Generate code with Codex based on code comments.

  • /s <query> - Search on Google, knowledge graph included.

  • /i <query> - Search on Google Images.

  • /d <word> - Get the definition of a word.

  • /t <language> <sentence> - Translate a sentence to a language.

  • /convert <amount> <input currency> to <output currency> - Convert currency.

  • /kp <query> - Display Knowledge Panel from Google.

Deploy to Cloud

Deploy to any cloud provider with Docker

Required environment variables

  • BOT_TOKEN - Telegram Bot Token.
  • OPENAI_API_KEY - OpenAI API Key.
  • AUTHORIZED_USERS - Comma separated list of authorized usernames to use the bot.

chatbot-telegram's People

Contributors

rabilrbl avatar

Stargazers

 avatar

Watchers

 avatar

chatbot-telegram's Issues

Bing cookie is required

Hey there,

I just came across your project and I'd like to try it, but seems like there's been a recent addition of bing-chat, which is now causing the Docker to fail if the Bing Cookie is not defined.

I don't have access to Bing Chat, but I'd like to use the Telegram feature for OpenAI via text-davinci-003. Would it still be possible to do so?

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.