//[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)