Looking for a game-changing solution that's both powerful and free? Look no further! ktlschatgpt is your all-in-one, completely free Telegram bot, equipped with a seamlessly integrated chatGPT for all your business and personal needs. Just deploy it to your server and use it for your purposes.
-
Clone this repository to your local machine with:
git clone https://github.com/Shulcz/ktlschatgpt.git
-
Navigate to the Repository Directory:
cd ktlschatgpt
-
Set up a Virtual Environment (Optional but Recommended):
python -m venv venv
- Activate the virtual environment:
- On macOS and Linux:
source venv/bin/activate
-
Install Required Packages:
pip install -r requirements.txt
-
Create a
.env
file and specify the required environment variables:BOT_TOKEN=<bot_token> WHITELIST_USERS=user_id_1,user_id_2,user_id_3
-
Run the Application:
python app.py
To update the bot, use the provided g4f_update
script:
sh g4f_update.sh
To clear the chat history with the bot, send the /newchat command.
All interactions with the bot are logged in the chat_history.db database, which is created after the bot is initialized.
Specify user IDs in the .env file to create a whitelist of users who can access the bot:
WHITELIST_USERS=user_id_1,user_id_2,user_id_3
Feel free to contribute to the development of this bot by creating issues or submitting pull requests.