mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2024-12-22 05:57:11 +00:00
update dependencies
This commit is contained in:
parent
79f3962c65
commit
bc5737d435
@ -2,6 +2,10 @@
|
||||
|
||||
## 0.1.0
|
||||
|
||||
* `Versions`
|
||||
* `tgbotapi`: `0.30.10` -> `0.31.0`
|
||||
* `microutils`: `0.4.11` -> `0.4.16`
|
||||
|
||||
## 0.0.5
|
||||
|
||||
* `Versions`
|
||||
|
@ -3,9 +3,9 @@ package dev.inmo.plagubot
|
||||
import dev.inmo.micro_utils.coroutines.safelyWithoutExceptions
|
||||
import dev.inmo.plagubot.config.Config
|
||||
import dev.inmo.plagubot.config.configSerialFormat
|
||||
import dev.inmo.tgbotapi.bot.Ktor.telegramBot
|
||||
import dev.inmo.tgbotapi.extensions.api.bot.setMyCommands
|
||||
import dev.inmo.tgbotapi.extensions.api.telegramBot
|
||||
import dev.inmo.tgbotapi.extensions.utils.updates.retrieving.startGettingFlowsUpdatesByLongPolling
|
||||
import dev.inmo.tgbotapi.extensions.utils.updates.retrieving.longPolling
|
||||
import dev.inmo.tgbotapi.types.botCommandsLimit
|
||||
import kotlinx.coroutines.*
|
||||
import kotlinx.serialization.InternalSerializationApi
|
||||
@ -17,7 +17,7 @@ suspend inline fun initPlaguBot(
|
||||
) {
|
||||
val bot = telegramBot(config.botToken)
|
||||
|
||||
bot.startGettingFlowsUpdatesByLongPolling(scope = scope) {
|
||||
bot.longPolling(scope = scope) {
|
||||
val commands = config.plugins.flatMap {
|
||||
it.invoke(bot, config.database.database, this, scope)
|
||||
it.getCommands()
|
||||
|
@ -8,8 +8,8 @@ kotlin_version=1.4.21
|
||||
kotlin_coroutines_version=1.4.2
|
||||
kotlin_serialisation_runtime_version=1.0.1
|
||||
kotlin_exposed_version=0.28.1
|
||||
tgbotapi_version=0.30.10
|
||||
microutils_version=0.4.11
|
||||
tgbotapi_version=0.31.0
|
||||
microutils_version=0.4.16
|
||||
klassindex_version=4.1.0-rc.1
|
||||
sqlite_version=3.30.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user