Skip to content

Commit

Permalink
Merge pull request #297 from InsanusMokrassar/18.2.2
Browse files Browse the repository at this point in the history
18.2.2
  • Loading branch information
InsanusMokrassar authored Oct 22, 2024
2 parents 9acb64f + 0bbc6a9 commit c2237f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
16 changes: 15 additions & 1 deletion CustomBot/src/main/kotlin/CustomBot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,21 @@ suspend fun main(vararg args: String) {
)
}

telegramBotWithBehaviourAndLongPolling(botToken, CoroutineScope(Dispatchers.IO), testServer = isTestServer) {
telegramBotWithBehaviourAndLongPolling(
botToken,
CoroutineScope(Dispatchers.IO),
testServer = isTestServer,
builder = {
includeMiddlewares {
addMiddleware {
doOnRequestReturnResult { result, request, _ ->
println("Result of $request:\n\n$result")
null
}
}
}
}
) {
// start here!!
val me = getMe()
println(me)
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ org.gradle.jvmargs=-Xmx3148m
kotlin.daemon.jvmargs=-Xmx3g -Xms500m


kotlin_version=2.0.20
telegram_bot_api_version=18.2.1
micro_utils_version=0.22.4
kotlin_version=2.0.21
telegram_bot_api_version=18.2.2
micro_utils_version=0.22.7
serialization_version=1.7.3
ktor_version=2.3.12

0 comments on commit c2237f7

Please sign in to comment.