ExtendedPrivateChat#bio

This commit is contained in:
InsanusMokrassar 2020-11-04 22:46:08 +06:00
parent 86a472e814
commit fd1a15cb5d
4 changed files with 8 additions and 2 deletions

View File

@ -13,6 +13,7 @@
section
* New field `dropPendingUpdates`. It works the same as `drop_pending_updates` in [setWebhook](https://core.telegram.org/bots/api#setwebhook)
section
* New field `ExtendedPrivateChat#bio`
## 0.29.4

View File

@ -247,6 +247,7 @@ const val userField = "user"
const val dateField = "date"
const val chatField = "chat"
const val usernameField = "username"
const val bioField = "bio"
const val nameField = "name"
const val emailField = "email"
const val locationField = "location"

View File

@ -2,4 +2,6 @@ package dev.inmo.tgbotapi.types.chat.abstracts.extended
import dev.inmo.tgbotapi.types.chat.abstracts.PrivateChat
interface ExtendedPrivateChat : PrivateChat, ExtendedChat
interface ExtendedPrivateChat : PrivateChat, ExtendedChat {
val bio: String
}

View File

@ -16,5 +16,7 @@ data class ExtendedPrivateChatImpl(
@SerialName(firstNameField)
override val firstName: String = "",
@SerialName(lastNameField)
override val lastName: String = ""
override val lastName: String = "",
@SerialName(bioField)
override val bio: String = ""
) : ExtendedPrivateChat