KtorRequestsExecutor

class KtorRequestsExecutor(    telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper,     client: HttpClient = HttpClient(),     callsFactories: List<KtorCallFactory> = emptyList(),     excludeDefaultFactories: Boolean = false,     requestsLimiter: RequestLimiter = ExceptionsOnlyLimiter(),     jsonFormatter: Json = nonstrictJsonFormat,     pipelineStepsHolder: KtorPipelineStepsHolder = KtorPipelineStepsHolder) : BaseRequestsExecutor

Constructors

Link copied to clipboard
fun KtorRequestsExecutor(    telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper,     client: HttpClient = HttpClient(),     callsFactories: List<KtorCallFactory> = emptyList(),     excludeDefaultFactories: Boolean = false,     requestsLimiter: RequestLimiter = ExceptionsOnlyLimiter(),     jsonFormatter: Json = nonstrictJsonFormat,     pipelineStepsHolder: KtorPipelineStepsHolder = KtorPipelineStepsHolder)

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open suspend override fun <T : Any> execute(request: Request<T>): T

Unsafe execution of incoming request. Can throw almost any exception. So, it is better to use something like dev.inmo.tgbotapi.extensions.utils.shortcuts.executeAsync or dev.inmo.tgbotapi.extensions.utils.shortcuts.executeUnsafe