tgsnake
Version:
Telegram MTProto framework for nodejs.
28 lines (27 loc) • 995 B
TypeScript
import { TLObject } from '../../TL.js';
import { Raw } from '../../../platform.node.js';
import type { Snake } from '../../../Client/index.js';
import { type sendDocumentParams } from '../../../Methods/Messages/index.js';
import { PhotoSize } from './PhotoSize.js';
export declare class Document extends TLObject {
fileId: string;
fileUniqueId: string;
thumb: Array<PhotoSize>;
date: Date;
dcId: number;
filename?: string;
mimeType?: string;
fileSize?: bigint;
constructor({ fileId, fileUniqueId, thumb, date, dcId, filename, mimeType, fileSize, }: {
fileId: string;
fileUniqueId: string;
thumb: Array<PhotoSize>;
date: Date;
dcId: number;
filename?: string;
mimeType?: string;
fileSize?: bigint;
}, client: Snake);
static parse(client: Snake, document: Raw.Document): Document;
resend(chatId: string | bigint, more?: sendDocumentParams): Promise<import("../Message.js").Message>;
}