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

Function cleanupCaptchaMessages

pmcaptcha/pmcaptcha.ts:715–721  ·  view source on GitHub ↗
(client: TelegramClient, userId: number, state: CaptchaState)

Source from the content-addressed store, hash-verified

713 if (!current || current.signal.aborted) return null;
714 runtimeLifecycle = current;
715 runtimeGeneration = current.generation;
716 return current;
717}
718
719function isStateCurrent(state: CaptchaState): boolean {
720 const lifecycle = getActiveLifecycle();
721 return !!lifecycle && state.generation === lifecycle.generation && !lifecycle.signal.aborted;
722}
723
724function clearCaptchaTimer(state: CaptchaState): void {

Callers 3

sendCaptchaFunction · 0.85
handleReplyFunction · 0.85
pmcaptchaFunction · 0.85

Calls 1

isStateCurrentFunction · 0.85

Tested by

no test coverage detected