- Multiple users with different sessions (No group support now)
- Response with reference (and correct ref label)
- Response with normal and stream mode
- Can allow every one to use
- Allow you set your own cookie at runtime
- Allow you set a bot name to you
- Prompt Support
- Image generation (inline query and command mode)
- Export conversation to Notion
- Hot update the EdgeGPT dependence
- python 3.8+
- A Microsoft Account with early access to http://bing.com/chat
- Telegram API_ID and API_KEY from https://my.telegram.org/apps
- Telegram BOT_TOKEN from @botfather
- Good practical skills and a clear mind!
PS: Everyone can access Bing AI for chat now, even anonymous users.
- Install the latest version of Microsoft Edge
- Alternatively, you can use any browser and set the user-agent to look like you're using Edge. You can do this easily with an extension like "User-Agent Switcher and Manager" for Chrome and Firefox.
- Open bing.com/chat
- If you see a chat feature, you are good to go
PS: This column is needed by image creator, or ask more questions and have longer conversations
pip install -r requirements.txt
cp .env.example .env
Then edit .env
file and set API_ID
, API_KEY
, BOT_TOKEN
and ALLOWED_USER_IDS
. Or you can set environment variables like this:
export API_ID='1234567'
export API_KEY='abcdefg2hijk5lmnopq8rstuvwxyz9'
export BOT_TOKEN='123456789:ABC-DEF1234ghIkl-zyx57W2v1u123ew11'
export ALLOWED_USER_IDS='112113115,567568569'
python PyroEdgeGptBot.py
- Fork this repo
- Login into Back4app (Suggests login with github account)
- Click
Build new app
andContainers as a Service
- Link the repo you forked.
- Set the Required ENVS (Explain here)
Note that you can run
python base64_encode_cookie.py
locally then getCOOKIE_BASE64
value frombase64_encoded_cookie.txt
- Deploy!
- Contact @botfather
- Send
/mybots
then select your bot and clickEdit Bot
->Edit Commands
- Paste below and send.
start - Start the bot!
help - Get help
reset - Reset the bot
new - Create new conversation
switch - Switch the conversation style
interval - Set edit interval
suggest_mode - Set the suggest mode
image_gen - Generate images
update - Update the EdgeGPT dependence
cookie - Set you own cookie
bot_name - Set the bot name display to you