mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-25 19:48:43 +00:00
add support of has_private_forwards
This commit is contained in:
parent
23f93075a4
commit
0581587adf
@ -113,6 +113,7 @@ const val isBotField = "is_bot"
|
|||||||
const val firstNameField = "first_name"
|
const val firstNameField = "first_name"
|
||||||
const val lastNameField = "last_name"
|
const val lastNameField = "last_name"
|
||||||
const val languageCodeField = "language_code"
|
const val languageCodeField = "language_code"
|
||||||
|
const val hasPrivateForwardsField = "has_private_forwards"
|
||||||
const val canJoinGroupsField = "can_join_groups"
|
const val canJoinGroupsField = "can_join_groups"
|
||||||
const val canReadAllGroupMessagesField = "can_read_all_group_messages"
|
const val canReadAllGroupMessagesField = "can_read_all_group_messages"
|
||||||
const val supportInlineQueriesField = "supports_inline_queries"
|
const val supportInlineQueriesField = "supports_inline_queries"
|
||||||
|
@ -7,4 +7,8 @@ import kotlinx.serialization.Serializable
|
|||||||
@Serializable(ExtendedChatSerializer::class)
|
@Serializable(ExtendedChatSerializer::class)
|
||||||
interface ExtendedPrivateChat : PrivateChat, ExtendedChat {
|
interface ExtendedPrivateChat : PrivateChat, ExtendedChat {
|
||||||
val bio: String
|
val bio: String
|
||||||
|
val hasPrivateForwards: Boolean
|
||||||
|
|
||||||
|
val allowCreateUserIdLink: Boolean
|
||||||
|
get() = hasPrivateForwards
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,7 @@ data class ExtendedPrivateChatImpl(
|
|||||||
@SerialName(lastNameField)
|
@SerialName(lastNameField)
|
||||||
override val lastName: String = "",
|
override val lastName: String = "",
|
||||||
@SerialName(bioField)
|
@SerialName(bioField)
|
||||||
override val bio: String = ""
|
override val bio: String = "",
|
||||||
|
@SerialName(hasPrivateForwardsField)
|
||||||
|
override val hasPrivateForwards: Boolean = false
|
||||||
) : ExtendedPrivateChat
|
) : ExtendedPrivateChat
|
||||||
|
Loading…
Reference in New Issue
Block a user