Skip to content

export Class

ExtensionsManager ​

extends ​

BaseManager

Constructor ​

ts
 new ExtensionsManager( client )
ParameterTypeDescription
clientClient

Properties ​

get defaults : Function ​

get get : Function ​

get isJson : Function ​

get nest : Function ​

readonly client : Client ​

readonly default? : any ​

readonly options : any ​

trace : any ​

An object of record for each extension, where the key is the name of the class and the value as the extension it was loaded from. default: {}

Methods ​

asyncinitialize( ) ​

Returns: Promise<void>

asyncregister( extension, options ) ​

ParameterTypeDescription
extensionstring | ExtensionCosntructor<T>
options = {}any

Returns: Promise<undefined | ExtensionsManager>

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.