Bing chat Telegram bot implemented in Python that utilizes unofficial EdgeChat API
- Different people will use the same conversation
-
python 3.8+
-
A Microsoft Account with early access to http://bing.com/chat (Required)
-
Install the latest version of Microsoft Edge
-
Open http://bing.com/chat
-
If you see a chat feature, you are good to go
- Install the cookie editor extension for Chrome or Firefox
- Go to
bing.com
- Open the extension
- Click "Export" on the bottom right (This saves your cookies to clipboard)
- Paste your cookies into a file
cookies.json
. The format of json refers tocookie.exaple.json
(The middle field is omitted)
pip install -r requirements.txt
Edit bing.py
vim bing.py
Find the configuration and edit it
#Please replace this config
BOT_TOKEN = 'REPLACE YOUR BOT TOKEN'
ALLOWED_USER_IDS = ['XXXXXXXXX', 'XXXXXXXX', 'XXXXXXXX']
python bing.py