mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
14 lines
387 B
Kotlin
14 lines
387 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor
|
||
|
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.Request
|
||
|
import io.ktor.client.HttpClient
|
||
|
import io.ktor.client.call.HttpClientCall
|
||
|
|
||
|
interface KtorCallFactory {
|
||
|
suspend fun <T: Any> prepareCall(
|
||
|
client: HttpClient,
|
||
|
baseUrl: String,
|
||
|
request: Request<T>
|
||
|
) : HttpClientCall?
|
||
|
}
|