mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-10-07 09:55:03 +00:00
1.2 KiB
1.2 KiB
//docs/dev.inmo.tgbotapi.bot/RequestsExecutor/execute
execute
[common]
Content
abstract suspend fun <T : Any> execute(request: Request<T>): T
More info
Unsafe execution of incoming request. Can throw almost any exception. So, it is better to use something like dev.inmo.tgbotapi.extensions.utils.shortcuts.executeAsync or dev.inmo.tgbotapi.extensions.utils.shortcuts.executeUnsafe
Throws
kotlin.Exception |