mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-12-22 22:26:01 +00:00
fixes
This commit is contained in:
@@ -8,7 +8,7 @@ import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.Transient
|
||||
import kotlin.math.roundToLong
|
||||
|
||||
private fun now(): Long = DateTime.nowUnixLong()
|
||||
private fun now(): Long = DateTime.nowUnixMillisLong()
|
||||
|
||||
@Serializable
|
||||
class CommonLimiter(
|
||||
|
||||
@@ -10,7 +10,7 @@ data class RetryAfterError(
|
||||
) : RequestError() {
|
||||
val canContinue = (seconds * 1000L) + startCountingMillis
|
||||
val leftToRetry: Long
|
||||
get() = canContinue - DateTime.nowUnixLong()
|
||||
get() = canContinue - DateTime.nowUnixMillisLong()
|
||||
}
|
||||
|
||||
data class MigrateChatId(
|
||||
|
||||
Reference in New Issue
Block a user