Global

Type Definitions

# TEmit(eventName, args)

Parameters:
Name Type Description
eventName string | symbol
args any

View Source types/index.ts, line 67

# THandlerCommand(context, bot)

Parameters:
Name Type Description
context any
bot UtilsCore

View Source types/index.ts, line 7

Example
handler(context, bot) {
 bot.testMetod() //utils.testMetod
 context.send('ура')
}

# TOn(eventName, listener)

Parameters:
Name Type Description
eventName string | symbol
listener function

View Source types/index.ts, line 73