Telegram bot for ChatGPT
Set environment variables
-
TELEGRAM_BOT_TOKEN
: Telegram token from bot created using @BotFather. -
TELEGRAM_CLIENT_ID
: Telegram client ID from @userinfobot -
OPENAI_API_KEY
: OpenAI API key from OpenAI.
Installation
pip install .
Launch the bot
telegpt
Usage
-
/new
: Restart the bot so it forget the last conversation. - Voice notes in any language will be translated to English before being passed to ChatGPT.