getInstance

inline fun <T : Any> ClassManager.getInstance(vararg initParams: Any?): T?


fun <T : Any> TelegramBot.getInstance(kClass: KClass<T>, vararg initParams: Any?): T

Method to get given class instance through defined ClassManager.

Parameters

T

output type.

kClass

class to get instance.

initParams

option to pass init parameters.