From e59c7b0f7e5fa220cd2b176b770f61c25f283bc2 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 18 Mar 2023 13:48:26 +0600 Subject: [PATCH] fixes --- triggers/selector_with_timer/src/jvmMain/kotlin/Plugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/triggers/selector_with_timer/src/jvmMain/kotlin/Plugin.kt b/triggers/selector_with_timer/src/jvmMain/kotlin/Plugin.kt index 42aae1c..2984257 100644 --- a/triggers/selector_with_timer/src/jvmMain/kotlin/Plugin.kt +++ b/triggers/selector_with_timer/src/jvmMain/kotlin/Plugin.kt @@ -109,7 +109,7 @@ object Plugin : Plugin { row { urlButton( - dateTime.format(dateTimeFormat), + dateTime.local.format(dateTimeFormat), makeLinkToMessage(post.chatId, post.messageId) ) } @@ -132,7 +132,7 @@ object Plugin : Plugin { } onMessageDataCallbackQuery( - Regex("^$pageCallbackDataQueryPrefix"), + Regex("^$pageCallbackDataQueryPrefix\\d+"), initialFilter = { it.message.sameChat(chatConfig.sourceChatId) } ) { val page = it.data.removePrefix(pageCallbackDataQueryPrefix).toIntOrNull() ?: let { _ ->