mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2024-05-31 23:15:12 +00:00
18 lines
503 B
Kotlin
18 lines
503 B
Kotlin
package dev.inmo.plagubot
|
|
|
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
|
import dev.inmo.tgbotapi.types.BotCommand
|
|
import dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter
|
|
import kotlinx.coroutines.CoroutineScope
|
|
import org.jetbrains.exposed.sql.Database
|
|
|
|
interface Plugin {
|
|
suspend fun getCommands(): List<BotCommand> = emptyList()
|
|
suspend operator fun invoke(
|
|
bot: TelegramBot,
|
|
database: Database,
|
|
updatesFilter: FlowsUpdatesFilter,
|
|
scope: CoroutineScope
|
|
)
|
|
}
|