UNPKG

@tgsnake/core

Version:

Pure Telegram MTProto library for nodejs

10 lines (9 loc) 640 B
import type { Client } from './Client.js'; import { Raw, TLObject } from '../raw/index.js'; import * as _Auth from './Auth.js'; export declare function loadSession(this: Client): Promise<void>; export declare function connect(this: Client): Promise<void>; export declare function start(this: Client, auth?: _Auth.SigInBot | _Auth.SigInUser): Promise<Raw.users.UserFull>; export declare function logout(this: Client): Promise<any>; export declare function exportSession(this: Client): Promise<string>; export declare function invoke(this: Client, query: TLObject, retries: number, timeout: number, sleepTreshold: number): Promise<TLObject>;