useTelegram
fun <C : ComponentInstaller, PluginInstaller> C.useTelegram(block: ConfigurerFunction<TelegramUsageBuilder>? = null)(source)
Install TelegramComponent and TelegramBotManager into C (e.g. ApplicationFactoryConfigurer).
val app = launchSimpleApplication {
useTelegram()
// or:
useTelegram {
component {
// config TelegramComponent...
}
botManager {
// config TelegramBotManager...
}
}
}
Content copied to clipboard