mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-12-22 08:37:18 +00:00
add showing of reactions count in println
This commit is contained in:
parent
262ef26239
commit
cb29726487
@ -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()
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user