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

Function downloadMessageMedia

quote/quote.ts:632–635  ·  view source on GitHub ↗
(msg: Api.Message, enabled: boolean)

Source from the content-addressed store, hash-verified

630}
631
632function emojiStatusIdFromEntity(entity: any): string | undefined {
633 const status = entity?.emojiStatus ?? entity?.emoji_status;
634 if (!status) return undefined;
635 // If status is a primitive (bigint, number, string), treat it as the direct document ID
636 if (typeof status !== "object") {
637 const id = status?.value ?? status;
638 return id ? String(id) : undefined;

Callers 1

prepareQuoteMediaFunction · 0.85

Calls 1

downloadMediaToBufferFunction · 0.85

Tested by

no test coverage detected