update version of telegram bot api

This commit is contained in:
InsanusMokrassar 2020-10-27 16:23:27 +06:00
parent 8f79b9e380
commit 7b66c89632
3 changed files with 2 additions and 6 deletions

View File

@ -26,10 +26,6 @@ suspend fun main(vararg args: String) {
val scope = CoroutineScope(Dispatchers.Default)
scope.launch {
println(bot.getChatAdministrators((-1001433262056L).toChatId()))
}
bot.startGettingFlowsUpdatesByLongPolling(scope = scope) {
messageFlow.onEach {
safely {

View File

@ -20,7 +20,7 @@ suspend fun activateResenderBot(
supervisorScope {
val scope = this
bot.startGettingFlowsUpdatesByLongPolling {
bot.startGettingFlowsUpdatesByLongPolling(scope = scope) {
filterContentMessages<MessageContent>(scope).onEach {
it.content.createResends(it.chat.id, replyToMessageId = it.messageId).forEach {
bot.executeUnsafe(it) {

View File

@ -2,4 +2,4 @@ kotlin.code.style=official
org.gradle.parallel=true
kotlin_version=1.4.10
telegram_bot_api_version=0.29.0
telegram_bot_api_version=0.29.2