mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 16:47:13 +00:00
fix of #860
This commit is contained in:
parent
fb3b8a7415
commit
f85d4a36e1
@ -34,14 +34,14 @@ class KtorRequestsExecutorBuilder(
|
||||
}
|
||||
|
||||
fun build() = KtorRequestsExecutor(
|
||||
telegramAPIUrlsKeeper,
|
||||
client,
|
||||
callsFactories,
|
||||
excludeDefaultFactories,
|
||||
requestsLimiter,
|
||||
jsonFormatter,
|
||||
pipelineStepsHolder,
|
||||
logger
|
||||
telegramAPIUrlsKeeper = telegramAPIUrlsKeeper,
|
||||
client = client,
|
||||
callsFactories = callsFactories,
|
||||
excludeDefaultFactories = excludeDefaultFactories,
|
||||
requestsLimiter = requestsLimiter,
|
||||
jsonFormatter = jsonFormatter,
|
||||
pipelineStepsHolder = pipelineStepsHolder,
|
||||
logger = logger
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -32,10 +32,10 @@ class DefaultKtorRequestsExecutor internal constructor(
|
||||
) : BaseRequestsExecutor(telegramAPIUrlsKeeper) {
|
||||
private val callsFactories: List<KtorCallFactory> = callsFactories.run {
|
||||
if (!excludeDefaultFactories) {
|
||||
logger.v { "Installing default factories" }
|
||||
this + createTelegramBotDefaultKtorCallRequestsFactories(logger)
|
||||
this@DefaultKtorRequestsExecutor.logger.v { "Installing default factories" }
|
||||
this + createTelegramBotDefaultKtorCallRequestsFactories(this@DefaultKtorRequestsExecutor.logger)
|
||||
} else {
|
||||
logger.v { "Default factories will not be installed" }
|
||||
this@DefaultKtorRequestsExecutor.logger.v { "Default factories will not be installed" }
|
||||
this
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user