1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-03-05 18:32:27 +00:00

WAT A HUGE REFACTOR

This commit is contained in:
2025-07-12 15:42:48 +06:00
parent 586a61157d
commit 9e4d7dd9f9
292 changed files with 1337 additions and 509 deletions

View File

@@ -1,3 +1,5 @@
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
package dev.inmo.tgbotapi.bot.ktor
import dev.inmo.tgbotapi.bot.ktor.base.MultipleClientKtorRequestsExecutor

View File

@@ -11,9 +11,11 @@ import io.ktor.client.engine.curl.*
*
* @throws IllegalArgumentException When pass non Curl-based [HttpClient] on LinuxX64
*/
@Suppress("NOTHING_TO_INLINE")
internal actual inline fun platformClientCopy(client: HttpClient): HttpClient = (client.engineConfig as? CurlClientEngineConfig) ?.let {
lateinit var config: HttpClientConfig<out CurlClientEngineConfig>
client.config {
@Suppress("UNCHECKED_CAST")
config = this as HttpClientConfig<out CurlClientEngineConfig>
}.close()
HttpClient(Curl) {

View File

@@ -1,3 +1,5 @@
@file:Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
package dev.inmo.tgbotapi.utils
import kotlinx.serialization.Serializable