UNPKG

@tgsnake/core

Version:

Pure Telegram MTProto library for nodejs

30 lines (29 loc) 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthKeyMissing = exports.ClientNotReady = exports.ClientReady = exports.ClientFailed = exports.ClientDisconnected = void 0; const Base_js_1 = require("./Base.js"); class ClientDisconnected extends Base_js_1.BaseError { message = "Can't send request to telegram when client is unconnected."; description = 'The provided telegram client is unconnected, make sure to start the telegram client first before sending request.'; } exports.ClientDisconnected = ClientDisconnected; class ClientFailed extends Base_js_1.BaseError { message = 'Client failed to connect to server.'; description = 'The provided telegram client failed to connect to the telegram data center server. Attempts to connect to the telegram server have exceeded the specified maximum limit.'; } exports.ClientFailed = ClientFailed; class ClientReady extends Base_js_1.BaseError { message = 'Client is already connected to server.'; description = 'The provided telegram client has been already connected to the telegram data center server.'; } exports.ClientReady = ClientReady; class ClientNotReady extends Base_js_1.BaseError { message = 'Client is already disconnected to server.'; description = 'The provided telegram client has been already disconnected to the telegram data center server.'; } exports.ClientNotReady = ClientNotReady; class AuthKeyMissing extends Base_js_1.BaseError { message = 'Auth key unavailable'; description = 'Auth key is unavailable, this can happen because at when the client is run, the user does not provide information to login.'; } exports.AuthKeyMissing = AuthKeyMissing;