feat: Implement account pooling for concurrent scheduling and introduce a new permissions module.

This commit is contained in:
2026-02-13 04:06:42 +08:00
parent ef23318090
commit 34215222bf
5 changed files with 607 additions and 65 deletions

View File

@@ -17,6 +17,21 @@ product_id = "prod_TXU4hGh2EDxASl"
bot_token = "your_bot_token_here" # @BotFather 获取
allowed_users = [] # 允许使用的用户ID列表空=不限制)
# --- 角色权限控制 ---
# 每个 [[telegram.roles]] 定义一个角色,包含用户列表和允许的命令
# commands = ["*"] 表示全部命令
# 如果不配置 roles所有 allowed_users 拥有全部权限
[[telegram.roles]]
name = "admin"
users = [] # 管理员用户 ID
commands = ["*"] # 全部命令
[[telegram.roles]]
name = "user"
users = [] # 普通用户 ID
commands = ["accounts", "verify", "stats", "status", "help", "start"]
# --- 邮箱系统轮询使用API 接口相同)---
# 可添加多个 [[mail]] 块
# api_token: 直接配置 API Token无需管理员账号密码