Thanks to visit codestin.com
Credit goes to github.com

Skip to content

the-omics-os/healthos_bot

Β 
Β 

Repository files navigation

ChatGPT Telegram Bot: GPT-4. Fast. No daily limits. Special chat modes

We all love chat.openai.com, but... It's TERRIBLY laggy, has daily limits, and is only accessible through an archaic web interface.

This repo is ChatGPT re-created as Telegram Bot. And it works great.

You can deploy your own bot, or use mine: @jadvebot (Our web: https://jadve.com)

Features

  • Low latency replies (it usually takes about 3-5 seconds)
  • No request limits
  • Message streaming (watch demo)
  • GPT-4 and GPT-4 Turbo support
  • GPT-4 Vision support
  • Group Chat support (/help_group_chat to get instructions)
  • DALLE 2 (choose πŸ‘©β€πŸŽ¨ Artist mode to generate images)
  • Voice message recognition
  • Code highlighting
  • 15 special chat modes: πŸ‘©πŸΌβ€πŸŽ“ Assistant, πŸ‘©πŸΌβ€πŸ’» Code Assistant, πŸ‘©β€πŸŽ¨ Artist, 🧠 Psychologist, πŸš€ Elon Musk and other. You can easily create your own chat modes by editing config/chat_modes.yml
  • Support of ChatGPT API
  • List of allowed Telegram users
  • Track $ balance spent on OpenAI API

Bot commands

  • /retry – Regenerate last bot answer
  • /new – Start new dialog
  • /mode – Select chat mode
  • /balance – Show balance
  • /settings – Show settings
  • /help – Show help

Setup

  1. Get your OpenAI API key

  2. Get your Telegram bot token from @BotFather

  3. Edit config/config.example.yml to set your tokens and run 2 commands below (if you're advanced user, you can also edit config/config.example.env):

    mv config/config.example.yml config/config.yml
    mv config/config.example.env config/config.env
  4. πŸ”₯ And now run:

    docker-compose --env-file config/config.env up --build

Cloud Deployment

πŸš€ Super Simple (5 minutes)

The absolute easiest way - no persistent storage, just get it running:

# One-command deployment
./deploy-simple.sh

See Simple Azure Deploy Guide for manual steps.

πŸ—οΈ Full Production Setup

Complete deployment with persistent storage and networking:

# Full deployment to Azure
./deploy-azure.sh

For detailed Azure deployment instructions, see Azure Deployment Guide.

Cloud Features

  • Container Registry: Push your bot image to Azure Container Registry (ACR)
  • Managed Containers: Run on Azure Container Instances (ACI)
  • Secrets Management: Store tokens securely in Azure Key Vault
  • Persistent Storage: MongoDB with Azure Files persistent volumes
  • Networking: Private virtual networks for security
  • Monitoring: Built-in logging and monitoring with Azure Monitor
  • Auto-scaling: Automatic restarts and scaling capabilities

About

πŸ’¬ Telegram bot with ChatGPT, Python-based, using OpenAI's API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.4%
  • Shell 24.0%
  • Dockerfile 0.6%