1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

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 section
* New field `dropPendingUpdates`. It works the same as `drop_pending_updates` in [setWebhook](https://core.telegram.org/bots/api#setwebhook) * New field `dropPendingUpdates`. It works the same as `drop_pending_updates` in [setWebhook](https://core.telegram.org/bots/api#setwebhook)
section section
* New field `ExtendedPrivateChat#bio`
## 0.29.4 ## 0.29.4

View File

@ -247,6 +247,7 @@ const val userField = "user"
const val dateField = "date" const val dateField = "date"
const val chatField = "chat" const val chatField = "chat"
const val usernameField = "username" const val usernameField = "username"
const val bioField = "bio"
const val nameField = "name" const val nameField = "name"
const val emailField = "email" const val emailField = "email"
const val locationField = "location" 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 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) @SerialName(firstNameField)
override val firstName: String = "", override val firstName: String = "",
@SerialName(lastNameField) @SerialName(lastNameField)
override val lastName: String = "" override val lastName: String = "",
@SerialName(bioField)
override val bio: String = ""
) : ExtendedPrivateChat ) : ExtendedPrivateChat