2020-10-04 10:57:39 +00:00
|
|
|
package dev.inmo.tgbotapi.extensions.api.bot
|
2020-03-30 15:52:00 +00:00
|
|
|
|
2020-10-04 11:06:30 +00:00
|
|
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
|
|
|
import dev.inmo.tgbotapi.requests.bot.SetMyCommands
|
|
|
|
import dev.inmo.tgbotapi.types.BotCommand
|
2020-03-30 15:52:00 +00:00
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
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
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.setMyCommands(
|
2020-06-02 13:54:13 +00:00
|
|
|
vararg commands: BotCommand
|
|
|
|
) = setMyCommands(commands.toList())
|