import { ServiceClass, ConfigTypes, IRunConfig, IHandler, IUser } from '.'; import { Api } from './classes'; import { Polling } from './classes/Launch/Polling'; import { Webhook } from './classes/Launch/Webhook'; import { ScopeController } from './classes/Scope/ScopeController'; export declare class NestGram { private readonly token; private readonly module?; private readonly config?; private readonly runConfig; scope: ScopeController; handlers: IHandler[]; info: IUser; api: Api; polling?: Polling; webhook?: Webhook; /** * Creates new bot * @param token Token for running bot that you can get in {@link https://t.me/BotFather} * @param module Entry module * @param config Config for getting updates {@link ConfigTypes} * @param runConfig Run config {@link IRunConfig} * */ constructor(token: string, module?: any, config?: ConfigTypes, runConfig?: IRunConfig); static getServices(Module: any): Promise; private setupImports; private setupModule; private setupEntry; /** * Use an API class with a different token * @param token Bot token you want to get property class * */ to(token: string): Api; /** * Starts bot using Long Polling or Webhooks * @return bot username * */ start(): Promise; }