1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 03:58:44 +00:00

Merge pull request #488 from Djaler/get-my-commands-overload

fix getMyCommands overloads conflict when no arguments provided
This commit is contained in:
InsanusMokrassar 2021-10-23 10:31:13 +06:00 committed by GitHub
commit a962838012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
## 0.36.1 ## 0.36.1
* `API`:
* Fix `getMyCommands` overloads conflict when no arguments provided
* `Utils`: * `Utils`:
* `buildEntities` DSL now have parameter `separator` to specify `TextSource` that will be inserted between other sources * `buildEntities` DSL now have parameter `separator` to specify `TextSource` that will be inserted between other sources

View File

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