Bing chat Telegram bot implemented in Python that utilizes unofficial EdgeChat API
Different people will use the same conversation(fixed)
-
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
export BOT_TOKEN='REPLACE YOUR BOT TOKEN'
export ALLOWED_USER_IDS='XXXXXXXXX,XXXXXXXX,XXXXXXXX'
Optional path to cookies.json
file:
export COOKIE_PATH='REPLACE YOUR COOKIE PATH'
python bing.py