1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-03-20 17:52:24 +00:00

improve readability of SetBusinessAccountUsername and fix its api

This commit is contained in:
2026-03-06 18:44:35 +06:00
parent 083fd1b682
commit b30af48b8d
5 changed files with 15 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ data class SetBusinessAccountUsername(
override val businessConnectionId: BusinessConnectionId,
@SerialName(usernameField)
@Serializable(Username.Companion.WithoutAtSerializer::class)
val username: Username
val username: Username? = null
) : BusinessRequest.Simple<Unit> {
override fun method(): String = "setBusinessAccountUsername"