1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-02 07:55:25 +00:00
tgbotapi/TelegramBotAPI-extensions-api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/bot/SetMyCommands.kt

14 lines
473 B
Kotlin
Raw Normal View History

package dev.inmo.tgbotapi.extensions.api.bot
2020-03-30 15:52:00 +00:00
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
2020-03-30 15:52:00 +00:00
import com.github.insanusmokrassar.TelegramBotAPI.requests.bot.SetMyCommands
import com.github.insanusmokrassar.TelegramBotAPI.types.BotCommand
suspend fun TelegramBot.setMyCommands(
2020-03-30 15:52:00 +00:00
commands: List<BotCommand>
) = execute(SetMyCommands(commands))
2020-06-02 13:54:13 +00:00
suspend fun TelegramBot.setMyCommands(
2020-06-02 13:54:13 +00:00
vararg commands: BotCommand
) = setMyCommands(commands.toList())