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

Function archiveChat

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

Source from the content-addressed store, hash-verified

412 return user;
413 }
414 }
415 } catch {}
416
417 return null;
418}
419
420async function getDisplayName(client: TelegramClient, userId: number): Promise<string> {
421 if (nameCache.has(userId)) return nameCache.get(userId)!;
422 const user = await fetchUserInfo(client, userId);
423 if (user) {
424 const name = [user.firstName, user.lastName].filter(Boolean).join(" ").trim() || "Unknown";

Callers 3

runFailActionsFunction · 0.85
executeBlockActionsFunction · 0.85
messageListenerFunction · 0.85

Calls 1

logFunction · 0.85

Tested by

no test coverage detected