1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-10-01 15:06:10 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.extensions.api/telegram-bot.md
2021-03-17 15:18:37 +00:00

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