Skip to content

Commit

Permalink
fixes of build
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Nov 4, 2024
1 parent afbc26b commit 8b98df2
Showing 1 changed file with 3 additions and 3 deletions.
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 8b98df2

Please sign in to comment.