Бот для капчи в чатах
Roman Sergienko
8 hours ago 4f524615941e8b0a18988d986aa4918c7172e6c5
refs
author Roman Sergienko <romasergienko@outlook.com>
Friday, December 4, 2026 10:53 +0000
committer Roman Sergienko <romasergienko@outlook.com>
Friday, December 4, 2026 10:53 +0000
commit4f524615941e8b0a18988d986aa4918c7172e6c5
tree c1661d73133bb1d08b193d7a4af08871ac6c50d8 tree | zip | gz
parent d9c4c369924d1874e68b19ed93aa1aefa439b0cd view | diff
Add RP actions web panel with GIF upload support

- Add /chats/{chat_id}/rp page to manage roleplay actions
- Add api_rp_add endpoint to create actions with optional GIF upload
- Add api_rp_delete endpoint to remove actions
- Create rp.html template with form and action list
- Update rp.py handler to support local GIF files
- Add navigation link to RP Actions in chat panel
- GIFs stored locally in data/rp_gifs/ with timestamp+uuid naming
2 files added
5 files modified
320 ■■■■■ changed files
db.py 62 ●●●●● diff | view | raw | blame | history
main.py 1 ●●●●● diff | view | raw | blame | history
rp.py 49 ●●●●● diff | view | raw | blame | history
web/app.py 3 ●●●●● diff | view | raw | blame | history
web/templates/chat.html 14 ●●●●● diff | view | raw | blame | history
web/templates/rp.html 110 ●●●●● diff | view | raw | blame | history
web/views.py 81 ●●●●● diff | view | raw | blame | history