mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2026-01-07 15:05:41 +01:00
update README.md
This commit is contained in:
@@ -39,10 +39,12 @@ Customize the configuration by copying `.env.example` and renaming it to `.env`,
|
||||
OPENAI_EMAIL="<YOUR_OPENAI_EMAIL>"
|
||||
OPENAI_PASSWORD="<YOUR_OPENAI_PASSWORD>"
|
||||
TELEGRAM_BOT_TOKEN="<YOUR_TELEGRAM_BOT_TOKEN>"
|
||||
ALLOWED_TELEGRAM_CHAT_IDS="<CHAT_ID_1>,<CHAT_ID_2>,..."
|
||||
```
|
||||
You'll need to provide:
|
||||
1. Your OpenAI credentials (these are only sent to the OpenAI server to periodically refresh the access token and never shared). You can read more about it [here](https://github.com/acheong08/ChatGPT)
|
||||
2. Your Telegram bot's token, obtained using [BotFather](http://t.me/botfather) (see [tutorial](https://core.telegram.org/bots/tutorial#obtain-your-bot-token))
|
||||
3. A comma-separated list of Telegram chat IDs that are allowed to interact with the bot (use [getidsbot](https://t.me/getidsbot) to find your chat ID)
|
||||
|
||||
### Run
|
||||
Use the following command to start the bot:
|
||||
|
||||
Reference in New Issue
Block a user