- 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
31 lines
889 B
Python
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'
|
|
]
|