2023-03-09 18:34:57 +00:00
|
|
|
package dev.inmo.tgbotapi.extensions.api.bot
|
|
|
|
|
2023-12-24 13:25:41 +00:00
|
|
|
import dev.inmo.micro_utils.language_codes.IetfLang
|
2023-03-09 18:34:57 +00:00
|
|
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
|
|
|
import dev.inmo.tgbotapi.requests.bot.GetMyCommands
|
|
|
|
import dev.inmo.tgbotapi.requests.bot.GetMyShortDescription
|
|
|
|
import dev.inmo.tgbotapi.types.commands.BotCommandScope
|
|
|
|
import dev.inmo.tgbotapi.types.commands.BotCommandScopeDefault
|
|
|
|
|
|
|
|
suspend fun TelegramBot.getMyShortDescription(
|
2023-12-24 13:25:41 +00:00
|
|
|
languageCode: IetfLang? = null
|
2023-03-09 18:34:57 +00:00
|
|
|
) = execute(GetMyShortDescription(languageCode))
|
|
|
|
|
|
|
|
suspend fun TelegramBot.getMyShortDescription(
|
|
|
|
languageCode: String?
|
2023-12-24 13:25:41 +00:00
|
|
|
) = getMyShortDescription(languageCode ?.let(::IetfLang))
|