All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.dehuckakpyt.telegrambot.handler.BotHandler.kt Maven / Gradle / Ivy

package io.github.dehuckakpyt.telegrambot.handler

import io.github.dehuckakpyt.telegrambot.handling.BotHandling
import org.springframework.beans.factory.InitializingBean
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.support.GenericApplicationContext


/**
 * Created on 21.12.2023.
 *

* * @author Denis Matytsin */ abstract class BotHandler(private val block: BotHandling.() -> Unit) : InitializingBean { @Autowired private lateinit var applicationContext: GenericApplicationContext override fun afterPropertiesSet() { applicationContext.getBean(BotHandling::class.java).block() } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy