@tgsnake/core
Version:
Pure Telegram MTProto library for nodejs
12 lines (11 loc) • 566 B
TypeScript
import { File } from './File.js';
import { Raw } from '../raw/index.js';
import { type Client } from '../client/Client.js';
export declare function handleDownload(client: Client, file: File, location: Raw.TypeInputFileLocation, dcId: number, limit: number, offset: bigint): Promise<void>;
export declare function downloadStream(client: Client, location: Raw.TypeInputFileLocation, dcId: number, limit?: number, offset?: bigint): File;
export interface DownloadParam {
file: Raw.TypeInputFileLocation;
dcId: number;
limit?: number;
offset?: bigint;
}