Skip to content

msveshnikov/chatgpt

Repository files navigation

CHATGPT

Telegram Bot with OpenAI GPT-3.5-turbo, Gemini Pro, Stability AI painting, and Google scraping capabilities

Features

  • Multi-language support based on user's language code
  • Context management with automatic reset timeout
  • DDOS protection and request rate limiting
  • Temperature control for AI responses
  • Token consumption tracking
  • Image generation with Stability AI
  • Image-to-text conversion (temporarily disabled)
  • Google search integration
  • Optional subscription payments via Stripe

Environment Variables

Optional:

Optional (for promotion):

Installation

  1. Install NodeJS v.18
  2. Set up environment variables or create a .env file
  3. Run:
export PUPPETEER_SKIP_DOWNLOAD=1 #for aarch64
npm install
node index.js

Docker

A Dockerfile is provided for containerized deployment.

Development

To run the bot locally:

node index.js

Production

Live bot: https://t.me/maxsoft_chat_bot Discussion group: https://t.me/maxsoft_chat_gpt_group

Roadmap

  • Temperature control
  • Abuse detection (>500 tokens)
  • Context management with timeout
  • DDOS protection
  • Multi-language support
  • Token consumption tracking
  • Docker support
  • Gemini Pro integration
  • Enhance image-to-text functionality
  • Implement user feedback system
  • Add support for voice messages
  • Improve error handling and logging
  • Implement unit and integration tests
  • Create user documentation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Stargazers repo roster for @msveshnikov/chatgpt

Forkers repo roster for @msveshnikov/chatgpt