mirror of
https://github.com/hongguang1994/SimNexus.git
synced 2026-11-23 05:47:31 +08:00
Bot 设置(可热重启) - telegram_config 表(token/推送chat/白名单),为空回退 env;保存时 getMe 校验并 热重启长轮询(换 token 无需重部署)。GET/PUT /telegram/settings 自定义命令 - telegram_commands 表:reply(固定文本) / send(预设短信,号码参数优先→预设) / webhook(转发到外部 URL,返回体作回复——任意逻辑无需改后台) - /help 自动列出;GET/POST/PATCH/DELETE /telegram/commands 账号绑定(区分用户) - telegram_binds 表 + 一次性绑定码;/bind /unbind /whoami;命令按绑定用户权限: /modems /list /send 只操作该用户可访问/可发送的卡,/contacts 返回其私有通讯录 - 生成绑定码在账户菜单;已绑定列表+解绑在 Telegram 管理→设置 前端:Telegram 管理页「设置」弹窗(Bot 配置/自定义命令/我的绑定) (i18n 含本提交与 dashboard 提交共用的新文案 key) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>