(msg: Api.Message, target: SignTarget)
| 504 | } catch (e) { |
| 505 | console.error("[CheckIn] Userbot push failed:", e); |
| 506 | } |
| 507 | } |
| 508 | } |
| 509 | if (statusMsg) { |
| 510 | try { |
| 511 | await statusMsg.delete({ revoke: true }); |
| 512 | } catch {} |
| 513 | } |
| 514 | if (!sent) console.error("[CheckIn] Failed to send summary report."); |
| 515 | } |
| 516 | |
| 517 | private async runSingleSign(target: SignTarget): Promise<SignResult> { |
| 518 | const client = await getGlobalClient(); |
| 519 | if (!client) return { success: false, error: "客户端未初始化" }; |
no test coverage detected