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

Function getDocumentThumb

ai/ai.ts:661–665  ·  view source on GitHub ↗
(doc: Api.Document)

Source from the content-addressed store, hash-verified

659
660const getDocumentThumb = (doc: Api.Document): Api.TypePhotoSize | undefined => {
661 const thumbs = doc.thumbs || [];
662 if (thumbs.length === 0) return undefined;
663 return thumbs[thumbs.length - 1];
664};
665
666const resolveImageInputs = async (
667 parts: AIContentPart[],
668 httpClient: HttpClient,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected