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.
|
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:
|
def register_handlers(app: Application) -> None:
|
||||||
|
|
@ -13,7 +16,9 @@ def register_handlers(app: Application) -> None:
|
||||||
Args:
|
Args:
|
||||||
app: The telegram Application instance.
|
app: The telegram Application instance.
|
||||||
"""
|
"""
|
||||||
# Handlers will be imported and registered here as they're implemented:
|
# Basic commands
|
||||||
# from moai.bot.handlers import commands
|
app.add_handler(CommandHandler("start", start_command))
|
||||||
# app.add_handler(CommandHandler("help", commands.help_command))
|
app.add_handler(CommandHandler("help", help_command))
|
||||||
pass
|
|
||||||
|
# Status
|
||||||
|
app.add_handler(CommandHandler("status", status_command))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue