mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-25 19:48:43 +00:00
add support of has_visible_history field
This commit is contained in:
parent
e66537ee32
commit
14756fd6e8
@ -236,6 +236,7 @@ const val accentColorIdField = "accent_color_id"
|
|||||||
const val profileAccentColorIdField = "profile_accent_color_id"
|
const val profileAccentColorIdField = "profile_accent_color_id"
|
||||||
const val backgroundCustomEmojiIdField = "background_custom_emoji_id"
|
const val backgroundCustomEmojiIdField = "background_custom_emoji_id"
|
||||||
const val profileBackgroundCustomEmojiIdField = "profile_background_custom_emoji_id"
|
const val profileBackgroundCustomEmojiIdField = "profile_background_custom_emoji_id"
|
||||||
|
const val hasVisibleHistoryField = "has_visible_history"
|
||||||
const val iconCustomEmojiIdField = "icon_custom_emoji_id"
|
const val iconCustomEmojiIdField = "icon_custom_emoji_id"
|
||||||
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"
|
||||||
|
@ -49,6 +49,8 @@ data class ExtendedChannelChatImpl(
|
|||||||
override val backgroundCustomEmojiId: CustomEmojiId? = null,
|
override val backgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
@SerialName(profileBackgroundCustomEmojiIdField)
|
@SerialName(profileBackgroundCustomEmojiIdField)
|
||||||
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(hasVisibleHistoryField)
|
||||||
|
override val newMembersSeeHistory: Boolean = false
|
||||||
) : ExtendedChannelChat
|
) : ExtendedChannelChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@ -85,6 +87,8 @@ data class ExtendedGroupChatImpl(
|
|||||||
override val backgroundCustomEmojiId: CustomEmojiId? = null,
|
override val backgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
@SerialName(profileBackgroundCustomEmojiIdField)
|
@SerialName(profileBackgroundCustomEmojiIdField)
|
||||||
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(hasVisibleHistoryField)
|
||||||
|
override val newMembersSeeHistory: Boolean = false,
|
||||||
) : ExtendedGroupChat
|
) : ExtendedGroupChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@ -178,6 +182,8 @@ data class ExtendedSupergroupChatImpl(
|
|||||||
override val backgroundCustomEmojiId: CustomEmojiId? = null,
|
override val backgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
@SerialName(profileBackgroundCustomEmojiIdField)
|
@SerialName(profileBackgroundCustomEmojiIdField)
|
||||||
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(hasVisibleHistoryField)
|
||||||
|
override val newMembersSeeHistory: Boolean = false,
|
||||||
) : ExtendedSupergroupChat
|
) : ExtendedSupergroupChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@ -234,6 +240,8 @@ data class ExtendedForumChatImpl(
|
|||||||
override val backgroundCustomEmojiId: CustomEmojiId? = null,
|
override val backgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
@SerialName(profileBackgroundCustomEmojiIdField)
|
@SerialName(profileBackgroundCustomEmojiIdField)
|
||||||
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,
|
||||||
|
@SerialName(hasVisibleHistoryField)
|
||||||
|
override val newMembersSeeHistory: Boolean = false,
|
||||||
) : ExtendedForumChat
|
) : ExtendedForumChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@ -279,5 +287,5 @@ data class UnknownExtendedChat(
|
|||||||
@SerialName(backgroundCustomEmojiIdField)
|
@SerialName(backgroundCustomEmojiIdField)
|
||||||
override val backgroundCustomEmojiId: CustomEmojiId? = null
|
override val backgroundCustomEmojiId: CustomEmojiId? = null
|
||||||
@SerialName(profileBackgroundCustomEmojiIdField)
|
@SerialName(profileBackgroundCustomEmojiIdField)
|
||||||
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null,\
|
override val profileBackgroundCustomEmojiId: CustomEmojiId? = null
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,7 @@ sealed interface ExtendedPublicChat : ExtendedChat, PublicChat, ExtendedNonBotCh
|
|||||||
val pinnedMessage: Message?
|
val pinnedMessage: Message?
|
||||||
val membersHidden: Boolean
|
val membersHidden: Boolean
|
||||||
val availableReactions: List<Reaction>?
|
val availableReactions: List<Reaction>?
|
||||||
|
val newMembersSeeHistory: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
@Serializable(ExtendedChatSerializer.Companion::class)
|
@Serializable(ExtendedChatSerializer.Companion::class)
|
||||||
|
Loading…
Reference in New Issue
Block a user