Skip to content

Gnomee1337/tg-ai-chat-bot

Repository files navigation

tg-ai-chat-bot

Unlimited Telegram AI Chat Bot based on gpt4free using Aiogram

Allows you to maintain long-term communication with AI by saving/requesting unique history from your database for each user

Setup Bot:

  1. Create DB
  2. Create .env (based on .env.example) and fill it
  3. pip install -r requirements.txt
  4. Run main.py

Database info:

  • bot_users table for bot users
  • user_questions table for storing user questions history

Algorithm:

Each user question is stored in Database. As soon as a new question is asked, the bot retrieves the previous questions history from the Database, beautifies the user question history into an array and sends beatified array as an "messages" parament to the GPT4Free Provider

About

Unlimited Telegram AI Bot based on gpt4free

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages