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

Function isWebmFormat

yvlu/yvlu.ts:50–59  ·  view source on GitHub ↗
(buffer: Buffer)

Source from the content-addressed store, hash-verified

48 });
49 return Promise.race([promise, timeout]).finally(() => clearTimeout(timer));
50}
51
52const avatarCache = new Map<string, Buffer | undefined>();
53
54function stableEntityKey(entity: any): string | undefined {
55 const raw = entity?.id ?? entity?.userId ?? entity?.channelId ?? entity?.chatId ?? entity?.accessHash ?? entity;
56 if (!raw) return undefined;
57 try {
58 return typeof raw === "bigint" ? raw.toString() : JSON.stringify(raw, (_, v) => typeof v === "bigint" ? v.toString() : v);
59 } catch (_) {
60 return String(raw);
61 }
62}

Callers 2

getWebPDimensionsFunction · 0.85
YvluPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected