first version

This commit is contained in:
2020-11-12 11:52:09 +06:00
parent 9b46894d99
commit e93704f511
13 changed files with 151 additions and 55 deletions

View File

@@ -0,0 +1,17 @@
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
)
}