Skip to content

kachook/text-generation-webui-telegram_bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Extension connecting text-generator to telegram bot api.

Image1

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:

  1. 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
  1. 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:

  1. add your bot token to "text-generation-webui\extensions\telegram_bot\telegram_token.txt" (ask https://t.me/BotFather how to get token)
  2. 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

About

Connect oobabooga/text-generation-webui to telegram bot api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%