feat(02-02): register handlers in __init__.py
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
cb185e139c
commit
2a563efce0
1 changed files with 10 additions and 5 deletions
|
|
@ -4,7 +4,10 @@ This module contains handlers for Telegram bot commands including
|
|||
project management, discussion commands, and export functionality.
|
||||
"""
|
||||
|
||||
from telegram.ext import Application
|
||||
from telegram.ext import Application, CommandHandler
|
||||
|
||||
from moai.bot.handlers.commands import help_command, start_command
|
||||
from moai.bot.handlers.status import status_command
|
||||
|
||||
|
||||
def register_handlers(app: Application) -> None:
|
||||
|
|
@ -13,7 +16,9 @@ def register_handlers(app: Application) -> None:
|
|||
Args:
|
||||
app: The telegram Application instance.
|
||||
"""
|
||||
# Handlers will be imported and registered here as they're implemented:
|
||||
# from moai.bot.handlers import commands
|
||||
# app.add_handler(CommandHandler("help", commands.help_command))
|
||||
pass
|
||||
# Basic commands
|
||||
app.add_handler(CommandHandler("start", start_command))
|
||||
app.add_handler(CommandHandler("help", help_command))
|
||||
|
||||
# Status
|
||||
app.add_handler(CommandHandler("status", status_command))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue