MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / runPassActions

Function runPassActions

pmcaptcha/pmcaptcha.ts:497–503  ·  view source on GitHub ↗
(client: TelegramClient, userId: number)

Source from the content-addressed store, hash-verified

495 for (const a of cfg.passActions()) {
496 if (a === PassAction.UNMUTE) await unmuteChat(client, userId);
497 if (a === PassAction.UNARCHIVE) await unarchiveChat(client, userId);
498 if (a === PassAction.WL) wl.add(userId);
499 }
500}
501
502// ─── 图片验证码生成 ───────────────────────────────────────────────────────────
503
504let _canvas: any = null;
505let _canvasInstalling = false;
506

Callers 1

handleReplyFunction · 0.85

Calls 3

unmuteChatFunction · 0.85
unarchiveChatFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected