tgsnake
Version:
Telegram MTProto framework for nodejs.
28 lines (27 loc) • 837 B
TypeScript
import { TLObject } from '../../TL.js';
import { Raw } from '../../../platform.node.js';
import type { Snake } from '../../../Client/index.js';
import { PhotoSize } from './PhotoSize.js';
export declare class Photo extends TLObject {
fileId: string;
fileUniqueId: string;
thumb: Array<PhotoSize>;
date: Date;
dcId: number;
size: bigint;
width: number;
height: number;
hasStickers?: boolean;
constructor({ fileId, fileUniqueId, thumb, date, dcId, size, width, height, hasStickers, }: {
fileId: string;
fileUniqueId: string;
thumb: Array<PhotoSize>;
date: Date;
dcId: number;
size: bigint;
width: number;
height: number;
hasStickers?: boolean;
}, client: Snake);
static parse(client: Snake, photo: Raw.Photo): Photo;
}