josephrocca / OpenCharacters

Simple little web interface for creating characters and chatting with them. It's basically a single HTML file - no server. Share characters using a link (character data is stored within the URL itself). All chat data is stored in your browser using IndexedDB. Currently supports OpenAI APIs and ~any Hugging Face model.
https://josephrocca.github.io/OpenCharacters
MIT License
377 stars 66 forks source link

Telegram plugin #29

Closed joseph-holland closed 1 year ago

joseph-holland commented 1 year ago

First development of a plugin that allows OpenCharacters to integrate with Telegram via the bot API. I plan to support multiple chats and characters soon but for now this is the first pass that proves the concept is possible.

josephrocca commented 1 year ago

Awesome, thanks for sharing this! If I understand correctly: You need to keep your browser tab open for this to work, and you need to add await import("./plugins/telegram/custom.js") to your characters custom code? (I've only skimmed the code - might be misunderstanding, but if that's correct then it might be a good idea to add that to the usage part of the readme)

If you end up improving on this, then it would also be great to have a Replit/Glitch demo so someone without much dev experience can spin up fast by just remixing/forking, and adding their token. Would also be cool to see a little video demo of it working!