Telegram bot CLI tool for ChatGPT interaction
Top 12.7% on sourcepulse
This project provides a self-hosted Telegram bot that allows users to interact with OpenAI's ChatGPT. It's designed for individuals who want a private, command-line interface to ChatGPT, accessible via Telegram, with a focus on ease of deployment.
How It Works
The bot is built as a Go CLI application. It leverages a browser-based authentication mechanism by default, launching a browser instance for users to log into their OpenAI account. Once authenticated, it captures the session token. Alternatively, users can manually extract their __Secure-next-auth.session-token
cookie from their browser and provide it directly for headless or server-side operation. This approach offers flexibility for different deployment environments.
Quick Start & Requirements
env.example
to .env
and fill in TELEGRAM_TOKEN
and optionally TELEGRAM_ID
../chatgpt-telegram
in the terminal from the extracted directory.docker pull ghcr.io/m1guelpf/chatgpt-telegram
. Use docker-compose
with a mounted .config/
volume containing chatgpt.json
for session token.Highlighted Details
Maintenance & Community
The project appears to be maintained by m1guelpf. No specific community channels (Discord/Slack) or roadmap are explicitly mentioned in the README.
Licensing & Compatibility
Limitations & Caveats
The automatic browser authentication may not work in headless environments. Manual session token extraction is required for server-side deployments without a GUI. The README does not detail specific OpenAI API rate limits or costs associated with usage.
2 years ago
1 day