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()) }