This is extension for oobabooga/text-generation-webui providing cai-chat like telegram bot interface.
REQUIREMENTS:
- python-telegram-bot==13.15
- pyyaml
HOW TO INSTALL:
- clone this repo to "text-generation-webui\extensions"
cd text-generation-webui
git clone https://github.com/innightwolfsleep/text-generation-webui-telegram_bot extensions\telegram_bot
- install "python-telegram-bot==13.15" module to your textgen envivroment. (Easiest way is run "webui.bat" with additional string "call pip install -r extensions\telegram_bot\requirements.txt" before "call python server.py"
HOW TO USE:
- add your bot token to "text-generation-webui\extensions\telegram_bot\telegram_token.txt" (ask https://t.me/BotFather how to get token)
- run server.py with "--extensions telegram_bot"
FEATURES:
- chat and notebook modes
- session for all users are separative (by chat_id)
- local session history - conversation won't be lost if server restarts. Separated history between users and chars.
- nice "X typing" during generating (users will not think that bot stucking)
- buttons: continue previous message, regenerate last message, remove last messages from history, reset history button, new char loading menu
- you can load new characters from text-generation-webui\characters with "/load" command!!!
- chatting # prefix for impersonate: "#You" or "#Castle guard" or "#Alice thoughts about me"
- save/load history in chat by downloading/forwarding to chat .json file
TBC:
- replace "X typing" by yield from generator
- group chat mode (need to be tested, does current workflow is ok?)
- switch text generator settings
- integrate google translator