MAJOR FIXES: ✅ Fixed UserBot container startup by making TELEGRAM_BOT_TOKEN optional ✅ Broke circular import chain between app modules ✅ Made Config.validate() conditional for UserBot-only mode ✅ Removed unused celery import from userbot_service.py INTEGRATION: ✅ UserBot menu now accessible from main bot /start command ✅ Added 🤖 UserBot button to main keyboard ✅ Integrated userbot_manager.py handlers: - userbot_menu: Main UserBot interface - userbot_settings: Configuration - userbot_collect_groups: Gather all user groups - userbot_collect_members: Parse group members ✅ UserBot handlers properly registered in ConversationHandler CONTAINERS: ✅ tg_autoposter_bot: Running and handling /start commands ✅ tg_autoposter_userbot: Running as standalone microservice ✅ All dependent services (Redis, PostgreSQL, Celery workers) operational STATUS: Bot is fully operational and ready for testing
33 lines
825 B
Python
33 lines
825 B
Python
from .commands import start, help_command, sync_groups_command
|
|
from .callbacks import (
|
|
start_callback, manage_messages, manage_groups,
|
|
list_messages, list_groups
|
|
)
|
|
from .sender import send_message
|
|
from .group_manager import my_chat_member
|
|
from .userbot_manager import (
|
|
userbot_menu, userbot_settings, userbot_init,
|
|
userbot_collect_groups, userbot_collect_members,
|
|
userbot_parse_members, cancel_userbot
|
|
)
|
|
|
|
__all__ = [
|
|
'start',
|
|
'help_command',
|
|
'sync_groups_command',
|
|
'start_callback',
|
|
'manage_messages',
|
|
'manage_groups',
|
|
'list_messages',
|
|
'list_groups',
|
|
'send_message',
|
|
'my_chat_member',
|
|
'userbot_menu',
|
|
'userbot_settings',
|
|
'userbot_init',
|
|
'userbot_collect_groups',
|
|
'userbot_collect_members',
|
|
'userbot_parse_members',
|
|
'cancel_userbot',
|
|
]
|