Handlers Package
# Submodules section with toctree removed as automodule below will cover them. # ———- # .. toctree:: # :maxdepth: 1 # # handlers.common # handlers.goal_setting # handlers.task_management
Common handlers for the Telegram bot with multi-goal support.
- async handlers.common.cancel_handler(update, context)[исходный код]
Handle /cancel command.
- async handlers.common.cancel_reset(update, context)[исходный код]
Handle reset cancellation.
- async handlers.common.confirm_reset(update, context)[исходный код]
Handle reset confirmation.
- async handlers.common.help_handler(update, context)[исходный код]
Handle /help command.
- async handlers.common.reset_handler(update, context)[исходный код]
Handle /reset command - show confirmation dialog.
- handlers.common.start_handler(scheduler)[исходный код]
Create start command handler with scheduler dependency.
- Параметры:
scheduler (
Scheduler
)- Тип результата:
- async handlers.common.unknown_handler(update, context)[исходный код]
Handle unknown commands.
Handler for the /setgoal conversation flow with multi-goal support.
- handlers.goal_setting.build_setgoal_conv()[исходный код]
Builds the ConversationHandler for the /setgoal command flow.
- Тип результата:
Handlers for managing daily tasks with multi-goal support.
- async handlers.task_management.cancel_check(update, context)[исходный код]
Cancel check conversation.
- async handlers.task_management.check_command(update, context)[исходный код]
Handle /check command - start task status update process.
- async handlers.task_management.choose_goal(update, context)[исходный код]
Handle goal selection for status update.
- handlers.task_management.get_task_handlers()[исходный код]
Get all task management handlers.
- async handlers.task_management.motivation_command(update, context)[исходный код]
Handle /motivation command - generate motivational message.
- async handlers.task_management.quick_status_update(update, context)[исходный код]
Handle quick status updates from /today command.
- async handlers.task_management.status_command(update, context)[исходный код]
Handle /status command - show overall progress.
- async handlers.task_management.today_command(update, context)[исходный код]
Handle /today command - show all tasks for today.