Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
n3d1117 committed Dec 5, 2022
1 parent a10d6ce commit 3a65b78
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# ChatGPT Telegram Bot
![python-version](https://img.shields.io/badge/python-3.10-blue.svg)
![playwright-version](https://img.shields.io/badge/playwright-1.28.0-green.svg)
![playwright-version](https://img.shields.io/badge/revChatGPT-0.0.23-green.svg)
[![license](https://img.shields.io/badge/License-GPL%202.0-brightgreen.svg)](LICENSE)

A [Telegram bot](https://core.telegram.org/bots/api) that integrates with OpenAI's [ChatGPT](https://openai.com/blog/chatgpt/) to provide answers. Ready to use with minimal configuration required.

## Screenshot
<img width="600" alt="Demo" src="https://user-images.githubusercontent.com/11541888/205508077-c6fa9c30-242e-4605-81a6-1049ca0060f3.png">
<img width="600" alt="Demo" src="https://user-images.githubusercontent.com/11541888/205653065-8ab38cac-f1e0-4519-91be-80d2c820a8b2.png">

## Prerequisites
- Python 3.10+
- [Pipenv](https://pipenv.readthedocs.io/en/latest/)
- A [Telegram bot](https://core.telegram.org/bots#6-botfather) and its token
- Python 3.10+ and [Pipenv](https://pipenv.readthedocs.io/en/latest/)
- A [Telegram bot](https://core.telegram.org/bots#6-botfather) and its token (see [tutorial](https://core.telegram.org/bots/tutorial#obtain-your-bot-token))
- An [OpenAI](https://openai.com) account (see [configuration](#configuration) section)

## Getting started
Expand Down Expand Up @@ -42,12 +41,11 @@ OPENAI_PASSWORD="<YOUR_OPENAI_PASSWORD>"
TELEGRAM_BOT_TOKEN="<YOUR_TELEGRAM_BOT_TOKEN>"
```
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)
- Read more [here](https://github.com/acheong08/ChatGPT)
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))

### Run the project
Use the following command to run the project:
### Run
Use the following command to start the bot:
```
python main.py
```
Expand Down

0 comments on commit 3a65b78

Please sign in to comment.