- Introduced `DependenciesMiddleware` and `BlacklistMiddleware` for enhanced request handling across all routers. - Refactored admin handlers to utilize new middleware, improving access control and error handling. - Updated the `admin_router` to include middleware for access checks and streamlined the process of banning users. - Enhanced the structure of admin handler imports for better organization and maintainability. - Improved error handling in various admin functions to ensure robust user interactions.
15 lines
396 B
Python
15 lines
396 B
Python
"""Constants for group handlers"""
|
||
|
||
from typing import Final
|
||
|
||
# FSM States
|
||
FSM_STATES: Final[dict[str, str]] = {
|
||
"CHAT": "CHAT"
|
||
}
|
||
|
||
# Error messages
|
||
ERROR_MESSAGES: Final[dict[str, str]] = {
|
||
"NO_REPLY_TO_MESSAGE": "Блять, выдели сообщение!",
|
||
"USER_NOT_FOUND": "Не могу найти кому ответить в базе, проебали сообщение."
|
||
}
|