mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2025-11-12 17:30:04 +00:00
fixes
This commit is contained in:
@@ -109,7 +109,7 @@ object Plugin : Plugin {
|
|||||||
|
|
||||||
row {
|
row {
|
||||||
urlButton(
|
urlButton(
|
||||||
dateTime.format(dateTimeFormat),
|
dateTime.local.format(dateTimeFormat),
|
||||||
makeLinkToMessage(post.chatId, post.messageId)
|
makeLinkToMessage(post.chatId, post.messageId)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -132,7 +132,7 @@ object Plugin : Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMessageDataCallbackQuery(
|
onMessageDataCallbackQuery(
|
||||||
Regex("^$pageCallbackDataQueryPrefix"),
|
Regex("^$pageCallbackDataQueryPrefix\\d+"),
|
||||||
initialFilter = { it.message.sameChat(chatConfig.sourceChatId) }
|
initialFilter = { it.message.sameChat(chatConfig.sourceChatId) }
|
||||||
) {
|
) {
|
||||||
val page = it.data.removePrefix(pageCallbackDataQueryPrefix).toIntOrNull() ?: let { _ ->
|
val page = it.data.removePrefix(pageCallbackDataQueryPrefix).toIntOrNull() ?: let { _ ->
|
||||||
|
|||||||
Reference in New Issue
Block a user