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

Function resolveMaxImageBytes

banana/banana.ts:178–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176
177function resolveMimeType(media: any): string {
178 const documentMime = media?.document?.mimeType;
179 if (typeof documentMime === "string" && documentMime.startsWith("image/")) {
180 return documentMime;
181 }
182 if (media?.photo) {
183 return "image/jpeg";
184 }

Callers 2

handleConfigFunction · 0.85
handleImageEditFunction · 0.85

Calls 2

getConfigValueFunction · 0.85
normalizeMaxBytesFunction · 0.85

Tested by

no test coverage detected