From 2c875594a6aa1c85904117b5ad0455ad3b4f4a64 Mon Sep 17 00:00:00 2001 From: kyx236 Date: Tue, 10 Feb 2026 02:43:23 +0800 Subject: [PATCH] feat: Add commands and help text for timed scheduler management and status. --- telegram_bot.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/telegram_bot.py b/telegram_bot.py index 90e9113..103b571 100644 --- a/telegram_bot.py +++ b/telegram_bot.py @@ -358,6 +358,10 @@ class ProvisionerBot: # AutoGPTPlus BotCommand("autogptplus", "AutoGPTPlus 管理面板"), BotCommand("update_token", "更新邮件 API Token"), + # 定时调度器 + BotCommand("schedule", "定时调度器 开关"), + BotCommand("schedule_config", "调度器参数配置"), + BotCommand("schedule_status", "调度器运行状态"), ] try: await self.app.bot.set_my_commands(commands) @@ -442,12 +446,18 @@ class ProvisionerBot: /autogptplus - ChatGPT 订阅自动化管理面板 /update_token <token> - 更新邮件 API Token +⏰ 定时调度器: +/schedule on|off - 开启/关闭定时调度器 +/schedule_config - 配置调度器参数 +/schedule_status - 查看调度器运行状态 + 💡 示例: /list - 查看所有待处理账号 /run 0 - 处理第一个 Team /concurrent 4 - 开启 4 并发处理 /gptmail_add my-api-key - 添加 Key -/iban_add DE123...,DE456... - 添加 IBAN""" +/iban_add DE123...,DE456... - 添加 IBAN +/schedule on - 启动调度器""" await update.message.reply_text(help_text, parse_mode="HTML") @admin_only