2020-11-12 05:52:09 +00:00
|
|
|
package dev.inmo.plagubot.config
|
|
|
|
|
2022-06-20 14:52:42 +00:00
|
|
|
import dev.inmo.micro_utils.common.Warning
|
2020-11-12 05:52:09 +00:00
|
|
|
import dev.inmo.plagubot.Plugin
|
2023-12-24 17:24:04 +00:00
|
|
|
import dev.inmo.tgbotapi.utils.telegramBotAPIDefaultUrl
|
2022-05-16 17:58:16 +00:00
|
|
|
import kotlinx.serialization.SerialName
|
2021-05-09 06:37:28 +00:00
|
|
|
import kotlinx.serialization.Serializable
|
2020-11-12 05:52:09 +00:00
|
|
|
|
2022-06-20 14:52:42 +00:00
|
|
|
@Warning("This API is internal and can be changed without notifications of mentions of changes")
|
2020-11-12 05:52:09 +00:00
|
|
|
@Serializable
|
|
|
|
data class Config(
|
2021-02-16 19:21:41 +00:00
|
|
|
val botToken: String,
|
2022-05-16 14:07:57 +00:00
|
|
|
val plugins: List<Plugin>,
|
2022-05-16 17:58:16 +00:00
|
|
|
@SerialName("database")
|
|
|
|
val databaseConfig: DatabaseConfig = DatabaseConfig(),
|
2023-12-24 17:24:04 +00:00
|
|
|
val botApiServer: String = telegramBotAPIDefaultUrl
|
2022-05-16 14:07:57 +00:00
|
|
|
)
|