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.gitNavigate to the Repository Directory:
cd ktlschatgptSet up a Virtual Environment (Optional but Recommended):
python -m venv venvsource venv/bin/activateInstall 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_3Run the Application:
python app.pyTo update the bot, use the provided g4f_update script:
sh g4f_update.shTo 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_3Feel free to contribute to the development of this bot by creating issues or submitting pull requests.