- Removed unnecessary `__init__.py` and `Dockerfile` to streamline project organization. - Updated `.dockerignore` and `.gitignore` to improve exclusion patterns for build artifacts and environment files. - Enhanced `Makefile` with new commands for managing Docker containers and added help documentation. - Introduced `pyproject.toml` for better project metadata management and dependency tracking. - Updated `requirements.txt` to reflect changes in dependencies for metrics and monitoring. - Refactored various handler files to improve code organization and maintainability.
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
"""Constants for private handlers"""
|
||
|
||
from typing import Final, Dict
|
||
|
||
# FSM States
|
||
FSM_STATES: Final[Dict[str, str]] = {
|
||
"START": "START",
|
||
"SUGGEST": "SUGGEST",
|
||
"PRE_CHAT": "PRE_CHAT",
|
||
"CHAT": "CHAT"
|
||
}
|
||
|
||
# Button texts
|
||
BUTTON_TEXTS: Final[Dict[str, str]] = {
|
||
"SUGGEST_POST": "📢Предложить свой пост",
|
||
"SAY_GOODBYE": "👋🏼Сказать пока!",
|
||
"LEAVE_CHAT": "Выйти из чата",
|
||
"RETURN_TO_BOT": "Вернуться в бота",
|
||
"WANT_STICKERS": "🤪Хочу стикеры",
|
||
"CONNECT_ADMIN": "📩Связаться с админами"
|
||
}
|
||
|
||
# Error messages
|
||
ERROR_MESSAGES: Final[Dict[str, str]] = {
|
||
"UNSUPPORTED_CONTENT": (
|
||
'Я пока не умею работать с таким сообщением. '
|
||
'Пришли текст и фото/фоты(ы). А лучше перешли это сообщение админу @kerrad1\n'
|
||
'Мы добавим его к обработке если необходимо'
|
||
),
|
||
"STICKERS_LINK": "Хорошо, лови, добавить можно отсюда: https://t.me/addstickers/love_biysk"
|
||
}
|