1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-03 15:19:30 +00:00

updates in Username

This commit is contained in:
2025-05-25 18:28:45 +06:00
parent c13a0d3193
commit 1474a07b9e
8 changed files with 48 additions and 19 deletions

View File

@@ -12,5 +12,5 @@ import kotlin.String
public suspend
fun TelegramBot.setBusinessAccountUsername(businessConnectionId: BusinessConnectionId,
username: String): Boolean = setBusinessAccountUsername(
businessConnectionId = businessConnectionId, username = with(username) { Username(username) }
businessConnectionId = businessConnectionId, username = with(username) { Username.prepare(username) }
)