Coder Social home page Coder Social logo

muabdelaal / chatgpt-telegram-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chetanxpro/chatgpt-telegram-bot

0.0 0.0 0.0 132 KB

A Telegram Chat bot that uses OpenAI Api to send you pictures in addition to responding to your questioins

License: MIT License

JavaScript 100.00%

chatgpt-telegram-bot's Introduction

Chatgpt telegram bot

How to install this bot ?

  • If You want to use extra features like speech service and database to store active users then use Master branch (You have to enter mongoDb connection url in .env)

  • Or if you dont want to use database then checkout to bot-without-monogdb branch (no need to enter monogoDB connection url in .env)

  • Clone This repo

  • Create .env file in root

  • Enter Your API keys in .env files

  • To install all modules npm install

  • To run developer server npm run dev

Env

  • API=<YOUR_OPENAI_API>

  • TG_API=<YOUR_TELEGRAM_BOT_API>

  • Need only if you want to use Text to Audio feature

  • AZURE_API=<YOUR_AZURE_TEXT_TO_AUDIO_API>

  • Need only if you want to save data to mongo Database

  • URI=<YOUR_MONOGDB_URI>

Commands

/ask <YOUR_QUESTION>

  • With this command you can ask anything from bot.
  • ex-> /ask what is utf-8 encoding

/speech <YOUR_TEXT>

  • Bot will generate Audio for your text
  • ex-> /speech hi how are you

/image <IMAGE_DESCRIPTION>

  • You can give a description to generate an image
  • ex-> /image A dog on moon.

/en <YOUR_WRONG_GRAMMAR_ENGLISH>

  • You can send your sentence with wrong grammar bot will fix that.
  • /en i am going in my house roof

chatgpt-telegram-bot's People

Contributors

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