- ChatGPT like
- Stream output
- User managerment
- Document support
- DALLE support
- Custom Prompt and share
- Python3
- OpenAI API Key or Google Gemini API Key
- Telegram bot token
- Poetry (Optional)
-
Clone this repo
git clone https://github.com/sirlaurie/chatgpt-for-telegram.git
-
Config your bot
cd chatgpt-for-telegram mv .env.example .env
edit
.env
with your own API key and bot token -
Set virtualenv via poetry
poetry shell poetry install
-
Config bot commands
Here is commands list I used:
reset - reset topic switch_model - set your default model my_prompts - user's private prompts create_new_prompt - Create a new prompt gen_image - Use Dall.E 3 to generate image document - Upload document translator - Use GPT as a translator admin - only for the bot admin
-
Run
source .env && python3 start.py