Package dev.inmo.tgbotapi.bot.Ktor

Types

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

Functions

telegramBot
Link copied to clipboard
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