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

Function hasPreviewMedia

quote/quote.ts:498–501  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

496function asBigInt(value: any): bigint | undefined {
497 if (value === undefined || value === null) return undefined;
498 try { return BigInt(value.value ?? value); } catch (_) { return undefined; }
499}
500
501function idNumber(value: any): number {
502 const raw = value?.value ?? value;
503 if (typeof raw === "bigint") return Number(raw);
504 if (typeof raw === "number") return raw;

Callers

nothing calls this directly

Calls 1

getMediaKindFunction · 0.85

Tested by

no test coverage detected