mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 16:47:13 +00:00
ExtendedPrivateChat#bio
This commit is contained in:
parent
86a472e814
commit
fd1a15cb5d
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user