dograma
Version:
NodeJS/Browser MTProto API Telegram client library,
30 lines (23 loc) • 573 B
text/typescript
export { MTProtoPlainSender } from "./MTProtoPlainSender";
export { doAuthentication } from "./Authenticator";
export { MTProtoSender } from "./MTProtoSender";
interface states {
disconnected: -1;
connected: 1;
broken: 0;
}
export class UpdateConnectionState {
static disconnected = -1;
static connected = 1;
static broken = 0;
state: number;
constructor(state: number) {
this.state = state;
}
}
export {
Connection,
ConnectionTCPFull,
ConnectionTCPAbridged,
ConnectionTCPObfuscated,
} from "./connection";