fix getMyCommands overloads conflict when no arguments provided

This commit is contained in:
Kirill Romanov committed 2021-10-22 21:34:04 +03:00
1 parent 064b6222e6
commit a5cc80a1eb
2 files changed
+3 -1

No files matched your search

@@ -13,5 +13,5 @@ suspend fun TelegramBot.getMyCommands(
suspend fun TelegramBot.getMyCommands(
scope: BotCommandScope = BotCommandScopeDefault,
languageCode: String? = null
languageCode: String?
) = getMyCommands(scope, languageCode ?.let(::IetfLanguageCode))