https://github.com/fepegar/telegram-gpt-bot
Use ChatGPT with your voice (in any language) and Telegram.
https://github.com/fepegar/telegram-gpt-bot
gpt-4 telegram telegram-bot
Last synced: over 1 year ago
JSON representation
Use ChatGPT with your voice (in any language) and Telegram.
- Host: GitHub
- URL: https://github.com/fepegar/telegram-gpt-bot
- Owner: fepegar
- Created: 2023-03-07T23:04:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-02T22:02:49.000Z (about 3 years ago)
- Last Synced: 2025-03-03T00:35:33.416Z (over 1 year ago)
- Topics: gpt-4, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telegram bot for ChatGPT
Send voice notes in any language (which will be translated to English) or text messages to ChatGPT.
## Set environment variables
- `TELEGRAM_BOT_TOKEN`: Telegram token from bot created using [@BotFather](https://t.me/botfather)
- `TELEGRAM_CLIENT_ID`: Telegram client ID from [@userinfobot](https://t.me/userinfobot)
- `OPENAI_API_KEY`: OpenAI API key from [OpenAI](https://beta.openai.com/)
## Installation
```shell
pip install telegpt
```
## Launch the bot
```shell
telegpt
```
## Usage
- Text `/new` to the bot to restart so it forget the last conversation.
- Voice notes in any language will be translated to English before being passed to ChatGPT.