- openai
- telebot
pip install openai
pip install telebot
If running the program and the prompt says error on line four, then: delete in library "telebot" and install library with "pyTelegramBotAPI" Make sure you have added the API key before running
with the following command:
pip uninstall telebot
pip install pyTelegramBotAPI
You need an API key from open ai as a protocol to communicate with Open AI GPT Example:
openai.api_key = "API_KEY"
And you also need the API key from telegram so that bots in telegram can communicate with this program code
api = 'API_KEY'
bot = telebot.TeleBot(api)
.
If bash or shell says "bot started running" then it means bot has been running and you can communicate with GPT Chat via Telegram Chat.