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?
|
|
}
|