KtorRequestsExecutor

class KtorRequestsExecutor(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, client: HttpClient, callsFactories: List<KtorCallFactory>, excludeDefaultFactories: Boolean, requestsLimiter: RequestLimiter, jsonFormatter: Json) : BaseRequestsExecutor

Functions

close
Link copied to clipboard
common
open override fun close()
execute
Link copied to clipboard
common
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