This is a very simple chatbot which is dealing with OpenAi API
The idea of this bot is only chating with you, follow the instructions below to deploy and use it
-
Get a free API Key from OpenAi
-
Get
API_HASH
andAPI_ID
from here and getBOT_TOKEN
from Botfather -
Add
OPENAI_API_KEY
,API_HASH
,API_ID
to.env
file
- Clone the repo:
git clone https://github.com/ObaidaNa/telegram-openai-chatbot.git
Change directory:
cd telegram-openai-chatbot
then install requirements:
pip install -r requirements.txt
- Generate session string using by running:
python generate_session_str.py
- Copy the session string and past it in
STRING_SESSION
in.env
file
Simply run the main.py file:
python main.py
and enjoy the AI chatbot ;)
Distributed under the MIT License. See LICENSE.txt
for more information.