Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 810 Bytes

README.md

File metadata and controls

33 lines (30 loc) · 810 Bytes

TelegramBot

About

The Bot is a simple Telegram Bot written in Python. It uses the pyTelegramBotAPI to communicate with the Telegram API. The Bot also uses OpenAi's GPT-3 API to generate answers for the questions.

Installation

  1. Clone the repository
git clone https://github.com/prajjwalkumarpanzade/TelegramBot.git
  1. Install the requirements
pip install -r requirements.txt
  1. Create a Telegram Bot and get the API Token @BotFather
  2. Create Bot Commands
/start - Start the Bot
/ai - Ask the Bot a Question
/stream - Stream the Answer
/help - Get Help
  1. Create a OpenAi API Key OpenAi
  2. Create a .env file and add the API Token and the API Key
  3. Run the Bot
python run.py

License

MIT