mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-07 12:23:14 +00:00
temporarily change request id main type to ushort
This commit is contained in:
1 parent
affa2a3a57
commit
1a1fd926dd
1 file changed
+2
-1
@@ -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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user