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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user