Giter Site home page Giter Site logo

aichatbot's Introduction

OpenAIBot For Telegram

  • This is a simple telegram chatbot that uses OpenAI API to generate a responses to messages. By sending the message the bot send a request to chatGPT API and wait for a response, once get the response sending it back to the chat.
  • You can test my bot from Bot

Requirements

  • pip install aiogram
  • pip install requests

How it works

  • python chatBot.py

To get Telegram API Token

1- Open Telegram and search for the BotFather account.

2- Send a message to the BotFather with the command /newbot.

3- Follow the instructions to choose a name and username for your bot.

4- Once you have created the bot, the BotFather will give you a token for your bot. This token should be kept secret and not shared with anyone.

To get Rapid API Token

1- Go to Rapid API

2- Sign up and Follow the instructions to get the token

Deployment

-Deployment of chatbot can be deployed on a cloud service provider I use Replit

Credits

  • This code created by @Michael. All information I get through chat GPT, so it is available to everyone to change/edit/create without return to me.

aichatbot's People

Contributors

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