add showing of reactions count in println

This commit is contained in:
InsanusMokrassar 2024-01-09 13:06:18 +06:00
parent 262ef26239
commit cb29726487
2 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import dev.inmo.tgbotapi.extensions.api.send.setMessageReaction
import dev.inmo.tgbotapi.extensions.api.send.setMessageReactions
import dev.inmo.tgbotapi.extensions.behaviour_builder.buildBehaviourWithLongPolling
import dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onChatMessageReactionUpdatedByUser
import dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.onChatMessageReactionsCountUpdated
import dev.inmo.tgbotapi.types.reactions.Reaction
import dev.inmo.tgbotapi.utils.customEmoji
import dev.inmo.tgbotapi.utils.regular
@ -56,5 +57,8 @@ suspend fun main(vararg args: String) {
it.messageId,
)
}
onChatMessageReactionsCountUpdated {
println(it)
}
}.join()
}

View File

@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx2344m
kotlin_version=1.9.22
telegram_bot_api_version=10.0.0-branch_10.0.0-build2039
telegram_bot_api_version=10.0.0-branch_10.0.0-build2042
micro_utils_version=0.20.25
serialization_version=1.6.2
ktor_version=2.3.7