Skip to content

Commit

Permalink
Merge pull request #56 from InsanusMokrassar/0.24.0
Browse files Browse the repository at this point in the history
0.24.0
  • Loading branch information
InsanusMokrassar authored Nov 4, 2024
2 parents e623fb0 + 8b98df2 commit 6bd372d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.24.0

* `Versions`:
* `Kotlin`: `2.0.21`
* `Serialization`: `1.7.3`
* `PlaguBot`: `10.1.0`
* `MicroUtils`: `0.23.0`
* `TelegramBotAPILibraries`: `0.26.0`

## 0.23.0

* `Versions`:
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kotlin.incremental=true
# Project data

group=dev.inmo
version=0.23.0
version=0.24.0
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[versions]

kotlin = "2.0.20"
kotlin-serialization = "1.7.2"
kotlin = "2.0.21"
kotlin-serialization = "1.7.3"

plagubot = "10.0.0"
plagubot = "10.1.0"
kslog = "1.3.6"
microutils = "0.22.2"
microutils = "0.23.0"

tgbotapi-libraries = "0.25.0"
tgbotapi-libraries = "0.26.0"

gh-release = "2.5.2"
dokka = "1.9.20"
Expand Down
6 changes: 3 additions & 3 deletions welcome/src/main/kotlin/model/ChatSettings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ internal suspend fun ChatSettings.sendWelcome(
replyTo: MessageId? = null
) = runCatchingSafely {
bot.copyMessage(
targetChatId,
sourceChatId,
sourceMessageId,
targetChatId,
replyParameters = replyTo ?.let { ReplyParameters(targetChatId, it, allowSendingWithoutReply = true) },
)
}.onFailure {
Expand All @@ -35,8 +35,8 @@ internal suspend fun ChatSettings.sendWelcome(
return runCatchingSafely {
val forwarded = bot.forwardMessage(
fromChatId = sourceChatId,
toChatId = recacheChatId,
messageId = sourceMessageId
messageId = sourceMessageId,
toChatId = recacheChatId
)
bot.copyMessage(
targetChatId,
Expand Down

0 comments on commit 6bd372d

Please sign in to comment.