mirror of
https://github.com/InsanusMokrassar/BooruGrabberTelegramBot.git
synced 2025-12-13 01:36:28 +00:00
now requests do not require any query
This commit is contained in:
@@ -15,9 +15,9 @@ import net.kodehawa.lib.imageboards.entities.Rating
|
||||
@Serializable
|
||||
data class ChatSettings(
|
||||
val query: String,
|
||||
val krontabTemplate: KrontabTemplate?,
|
||||
val krontabTemplate: KrontabTemplate? = null,
|
||||
@Serializable(BoardSerializer::class)
|
||||
private val boardBase: DefaultBoards,
|
||||
private val boardBase: DefaultBoards = DefaultBoards.SAFEBOORU,
|
||||
val count: Int = 1,
|
||||
val gallery: Boolean = false,
|
||||
val rating: Rating? = null,
|
||||
@@ -58,4 +58,8 @@ data class ChatSettings(
|
||||
encoder.encodeString(value.name.lowercase())
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
val DEFAULT = ChatSettings("", null, DefaultBoards.SAFEBOORU)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user