pip install -r requirements.txt
playwright install
Create .env
with:
BOT_TOKEN = <TELEGRAM_TOKEN>
API_USER = <OPENAI_USER>
API_PASSWORD = <OPENAI_PASSWORD>
You need an openAI account and a telegram bot token.
Execute simultaneously:
python api.py
python bot.py
Reused the https://chat.open.ai automation by Daniel Gross.