mirror of
https://github.com/InsanusMokrassar/TelegramBotTutorial.git
synced 2025-09-16 13:39:34 +00:00
add welcome plugin (currently uncompilable) and small fix in kdoc of template
This commit is contained in:
@@ -20,7 +20,7 @@ import org.koin.core.module.Module
|
||||
@Serializable
|
||||
class TemplatePlugin : Plugin {
|
||||
/**
|
||||
* Default logger of [TemplatePlugin] got with [logger]
|
||||
* Default logger of [WelcomePlugin] got with [logger]
|
||||
*/
|
||||
private val log = logger
|
||||
|
||||
@@ -43,7 +43,7 @@ class TemplatePlugin : Plugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* Final configuration of bot. Here we are getting [Config] from [koin] and configure reaction on `/start` command
|
||||
* Final configuration of bot. Here we are getting [Config] from [koin]
|
||||
*/
|
||||
override suspend fun BehaviourContext.setupBotPlugin(koin: Koin) {
|
||||
val config = koin.getOrNull<Config>()
|
||||
|
Reference in New Issue
Block a user