Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

lupeke/telegen

Repository files navigation

telegen

About

A simple AI chatbot that integrates ChatGPT API on Telegram.

Basic usage

Requirements

Running

  1. Rename .env.template and provide your own TELEGRAM_TOKEN and OPENAI_API_KEY.
  2. Build the Docker image.
docker build -t telegen .
  1. Create and run the container.
docker run --rm -v $(pwd):/usr/local/src -p 5000:5000 --env-file=.env telegen
  1. Visit localhost:5000 in your browser.

Commands

  • /restart to clear chat history.
  • /system <instruction> will change the behavior of the assistant.

Deploy

This project should be easily deployable as a Cloud Run service on GCP. Just make sure to set up all environment variables and change the maximum number of instances to 1 (you shouldn't have more than one bot instance running at the same time).


Icons created by rcherem and juicy_fish - Flaticon

About

A small AI chatbot for Telegram

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •