4.6 KiB
//docs/dev.inmo.tgbotapi.extensions.api/telegramBot
telegramBot
[common]
Content
fun telegramBot(urlsKeeper: TelegramAPIUrlsKeeper, client: ): TelegramBot
More info
Allows to create bot using bot urlsKeeper and already prepared client
[common]
Content
inline fun <T : > telegramBot(urlsKeeper: TelegramAPIUrlsKeeper, clientFactory: <T>, noinline clientConfig: <T>.() -> Unit = {}): RequestsExecutor
More info
Allows to create bot using bot urlsKeeper and specify by passing clientFactory param and optionally configure it with clientConfig
[common]
Content
inline fun telegramBot(urlsKeeper: TelegramAPIUrlsKeeper, clientEngine: , noinline clientConfig: <*>.() -> Unit = {}): RequestsExecutor
More info
Allows to create bot using bot urlsKeeper and specify by passing clientEngine param and optionally configure using clientConfig
[common]
Content
inline fun telegramBot(urlsKeeper: TelegramAPIUrlsKeeper, noinline clientConfig: <*>.() -> Unit): RequestsExecutor
More info
Allows to create bot using bot urlsKeeper and specify by configuring using clientConfig
[common]
Content
inline fun telegramBot(token: String, apiUrl: String = telegramBotAPIDefaultUrl, client: ): TelegramBot
More info
Allows to create bot using bot token, apiUrl (for custom api servers) and already prepared client
[common]
Content
inline fun <T : > telegramBot(token: String, clientFactory: <T>, apiUrl: String = telegramBotAPIDefaultUrl, noinline clientConfig: <T>.() -> Unit = {}): RequestsExecutor
[common]
Content
inline fun telegramBot(token: String, clientEngine: , apiUrl: String = telegramBotAPIDefaultUrl, noinline clientConfig: <*>.() -> Unit = {}): RequestsExecutor
More info
Allows to create bot using bot token and specify by passing clientEngine param and optionally configure using clientConfig
[common]
Content
inline fun telegramBot(token: String, apiUrl: String = telegramBotAPIDefaultUrl, noinline clientConfig: <*>.() -> Unit): RequestsExecutor
More info
Allows to create bot using bot token and apiUrl and specify by configuring using clientConfig