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.txt
The 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.git
Go to the project directory
cd chatGPT-telegram
Start the program
python main.py