(cmd: string, args: string[], timeout = 10000)
| 677 | */ |
| 678 | async function rawDownloadDocument(client: any, doc: any): Promise<Buffer | undefined> { |
| 679 | if (!client || !doc) return undefined; |
| 680 | const location = new Api.InputDocumentFileLocation({ |
| 681 | id: doc.id, |
| 682 | accessHash: doc.accessHash, |
| 683 | fileReference: doc.fileReference, |
| 684 | thumbSize: "", |
| 685 | }); |
| 686 | return rawDownloadFile(client, location, doc.dcId); |
no outgoing calls
no test coverage detected