chatGPT-telegram is a telegram chatbot based on chatGPT from openai which is very powerful
install the required libraries
See the OpenAI API docs.
pip install -r requirements.txtThe library needs to be configured with your account's secret key which is available on the Website.
add your secret key at
import openai
openai.api_key = "secret key"to get the telegram secret key you can see the tutorial here.
add your telegram secret key at
api = 'bot-key'
bot = telebot.TeleBot(api)Clone the project
git clone https://github.com/zarlicho/chatGPT-telegram.gitGo to the project directory
cd chatGPT-telegramStart the program
python main.py