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