From 1a1fd926dd2370dc092025922ad747f8a3e8e9dd Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 24 Sep 2023 21:12:48 +0600 Subject: [PATCH] temporarily change request id main type to ushort --- .../kotlin/dev/inmo/tgbotapi/types/request/RequestId.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/request/RequestId.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/request/RequestId.kt index 048b7a5ff4..e247413876 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/request/RequestId.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/request/RequestId.kt @@ -7,8 +7,9 @@ import kotlin.random.Random @Serializable @JvmInline value class RequestId( - val int: Int + val uShort: UShort ) { + constructor(int: Int) : this(int.toUShort()) companion object { fun random() = RequestId(Random.nextInt()) }