mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-12-22 08:37:18 +00:00
update version of telegram bot api
This commit is contained in:
parent
8f79b9e380
commit
7b66c89632
@ -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 {
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user