eu.vendeli.tgbot.interfaces.ConfigLoader.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegram-bot Show documentation
Show all versions of telegram-bot Show documentation
Telegram Bot API wrapper, with handy Kotlin DSL.
package eu.vendeli.tgbot.interfaces
import eu.vendeli.tgbot.types.internal.configuration.BotConfiguration
/**
* An interface for configuring the bot.
*
* @property token Token of your bot
* @property commandsPackage The place where the search for commands and inputs will be done.
*/
interface ConfigLoader {
val token: String
val commandsPackage: String? get() = null
/**
* Function to load bot configuration class.
*/
fun load(): BotConfiguration
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy