tgsnake
Version:
Telegram MTProto framework for nodejs.
11 lines (10 loc) • 367 B
TypeScript
import { Files } from '../../platform.node.js';
import type { Snake } from '../../Client/index.js';
export interface DownloadParams {
fileId: string;
fileSize: bigint;
limit?: number;
offset?: bigint;
thumbSize?: string;
}
export declare function download(client: Snake, { fileId, limit, offset, thumbSize }: DownloadParams): Promise<Files.File>;