Package dev.inmo.tgbotapi.bot.Ktor

Types

KtorCallFactory
Link copied to clipboard
common
interface KtorCallFactory
KtorRequestsExecutor
Link copied to clipboard
common
class KtorRequestsExecutor(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, client: HttpClient, callsFactories: List<KtorCallFactory>, excludeDefaultFactories: Boolean, requestsLimiter: RequestLimiter, jsonFormatter: Json) : BaseRequestsExecutor
KtorRequestsExecutorBuilder
Link copied to clipboard
common
class KtorRequestsExecutorBuilder(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper)

Functions

telegramBot
Link copied to clipboard
common
inline fun telegramBot(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, crossinline builder: KtorRequestsExecutorBuilder.() -> Unit = {}): TelegramBot
inline fun telegramBot(token: String, apiUrl: String = telegramBotAPIDefaultUrl, crossinline builder: KtorRequestsExecutorBuilder.() -> Unit = {}): TelegramBot

Shortcut for telegramBot