mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-02 16:05:28 +00:00
12 lines
441 B
Kotlin
12 lines
441 B
Kotlin
|
package dev.inmo.tgbotapi.extensions.api.bot
|
||
|
|
||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||
|
import dev.inmo.tgbotapi.requests.bot.DeleteMyCommands
|
||
|
import dev.inmo.tgbotapi.types.commands.BotCommandScope
|
||
|
import dev.inmo.tgbotapi.types.commands.BotCommandScopeDefault
|
||
|
|
||
|
suspend fun TelegramBot.deleteMyCommands(
|
||
|
scope: BotCommandScope = BotCommandScopeDefault,
|
||
|
languageCode: String? = null
|
||
|
) = execute(DeleteMyCommands(scope, languageCode))
|