Enhance database handling and improve HTML safety across the bot. Added async methods for blacklist checks, updated connection settings for SQLite, and implemented HTML escaping for user inputs and messages to prevent potential issues. Adjusted middleware latency and refactored various handlers for better performance and reliability.

This commit is contained in:
2025-08-26 16:51:28 +03:00
parent 7b6abe2a0e
commit fee22f8ad4
17 changed files with 308 additions and 77 deletions

8
.gitignore vendored
View File

@@ -1,4 +1,9 @@
/database/tg-bot-database
/database/tg-bot-database.db
/database/tg-bot-database.db-shm
/database/tg-bot-database.db-wal
/database/test.db
/database/test.db-shm
/database/test.db-wal
/settings.ini
/myenv/
/venv/
@@ -36,3 +41,4 @@ test.db
.Trashes
ehthumbs.db
Thumbs.db
PERFORMANCE_IMPROVEMENTS.md