mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-07 12:23:14 +00:00
improve readability of SetBusinessAccountUsername and fix its api
This commit is contained in:
1 parent
083fd1b682
commit
b30af48b8d
5 files changed
+15
-13
No files matched your search
+1
-1
@@ -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