@tgsnake/core
Version:
Pure Telegram MTProto library for nodejs
32 lines (31 loc) • 1.13 kB
TypeScript
export * as Exceptions from './exceptions/index.js';
export * as ClientError from './Client.js';
export * as WSError from './WebSocket.js';
export * as SecretChatError from './SecretChat.js';
export * as FileErrors from './File.js';
export { RPCError, UnknownError } from './RpcError.js';
import { BaseError } from './Base.js';
export declare class TimeoutError extends BaseError {
timeout: number;
constructor(timeout: number);
}
export declare class NotAFunctionClass extends BaseError {
message: string;
description: string;
constructor(className: string);
}
export declare class BadMsgNotification extends BaseError {
constructor(code: number);
}
export declare class SecurityError extends BaseError {
constructor(description?: string);
static check(cond: boolean, description?: string): void;
}
export declare class SecurityCheckMismatch extends SecurityError {
message: string;
static check(cond: boolean, description?: string): void;
}
export declare class CDNFileHashMismatch extends SecurityError {
message: string;
static check(cond: boolean, description?: string): void;
}