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

21 lines
901 B
Markdown

//[docs](../../index.md)/[dev.inmo.tgbotapi.extensions.api](index.md)/[buildBot](build-bot.md)
# buildBot
[common]
Content
fun [buildBot](build-bot.md)(token: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), apiUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) = telegramBotAPIDefaultUrl, block: [BotBuilder](-bot-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [RequestsExecutor](../dev.inmo.tgbotapi.bot/-requests-executor/index.md)
More info
#### Return
Created by telegramBotWithCustomClientConfig function [TelegramBot](../dev.inmo.tgbotapi.bot/index.md#%5Bdev.inmo.tgbotapi.bot%2FTelegramBot%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081). This executor will be preconfigured using [token](build-bot.md) and [block](build-bot.md)