add note about startPlugin in setupBotPlugin

This commit is contained in:
InsanusMokrassar 2024-09-22 13:33:53 +06:00
parent 47f5086ebd
commit f9b7d444a6

View File

@ -45,6 +45,8 @@ interface Plugin : StartPlugin {
/** /**
* Override this method in cases when you want to declare common bot behaviour. In case you wish to use FSM, you * Override this method in cases when you want to declare common bot behaviour. In case you wish to use FSM, you
* should override the method with receiver [BehaviourContextWithFSM] * should override the method with receiver [BehaviourContextWithFSM]
*
* Besides, this method by default will call [startPlugin]
*/ */
suspend fun BehaviourContext.setupBotPlugin( suspend fun BehaviourContext.setupBotPlugin(
koin: Koin koin: Koin