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

Function isMp4Format

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

Source from the content-addressed store, hash-verified

169 // Try to get document/photo info for raw download
170 let doc = media?.document ?? media?.photo;
171 if (doc && doc.id && doc.accessHash) {
172 // Small files: use raw download
173 const isLarge = doc.size && doc.size > 1024 * 1024;
174 if (!isLarge) {
175 const location = new Api.InputDocumentFileLocation({
176 id: doc.id,
177 accessHash: doc.accessHash,
178 fileReference: doc.fileReference,
179 thumbSize: "w",

Callers 1

YvluPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected