Files
telegram-helper-bot/voice_bot/handlers/__init__.py
Andrey d128e54694 Refactor project structure and remove obsolete files
- Deleted the Makefile, `README_TESTING.md`, and several deployment scripts to streamline the project.
- Updated `.dockerignore` to exclude unnecessary development files.
- Adjusted database schema comments for clarity.
- Refactored metrics handling in middleware for improved command extraction and logging.
- Enhanced command mappings for buttons and callbacks in constants for better maintainability.
- Start refactor voice bot
2025-09-01 00:54:10 +03:00

31 lines
889 B
Python

from .voice_handler import voice_router
from .callback_handler import callback_router
from .dependencies import VoiceBotMiddleware, BotDB, Settings
from .exceptions import VoiceBotError, VoiceMessageError, AudioProcessingError, DatabaseError, FileOperationError
from .services import VoiceBotService, AudioFileService, VoiceMessage
from .utils import (
format_time_ago, plural_time, get_last_message_text,
validate_voice_message, get_user_emoji_safe
)
__all__ = [
'voice_router',
'callback_router',
'VoiceBotMiddleware',
'BotDB',
'Settings',
'VoiceBotError',
'VoiceMessageError',
'AudioProcessingError',
'DatabaseError',
'FileOperationError',
'VoiceBotService',
'AudioFileService',
'VoiceMessage',
'format_time_ago',
'plural_time',
'get_last_message_text',
'validate_voice_message',
'get_user_emoji_safe'
]