From 34f606545ed6c68c69b6f471710f9f5b715639a6 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 7 Feb 2020 22:45:57 +0600 Subject: [PATCH] additional fixes in live location --- .../TelegramBotAPI/requests/send/SendLocation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/send/SendLocation.kt b/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/send/SendLocation.kt index 45ba243ff3..37d88583f4 100644 --- a/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/send/SendLocation.kt +++ b/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/send/SendLocation.kt @@ -51,7 +51,7 @@ data class SendLocation( init { if (livePeriod != null && livePeriod !in livePeriodLimit) { - error("Live period for sending location must be in $livePeriodLimit") + error("Live period for sending location must be in $livePeriodLimit, but was $livePeriod") } } }