diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt index 103f327380..0e1cf5f246 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt @@ -164,6 +164,7 @@ const val languageCodeField = "language_code" const val addedToAttachmentMenuField = "added_to_attachment_menu" const val isPremiumField = "is_premium" const val hasPrivateForwardsField = "has_private_forwards" +const val hasRestrictedVoiceAndVideoMessagesField = "has_restricted_voice_and_video_messages" const val canJoinGroupsField = "can_join_groups" const val canReadAllGroupMessagesField = "can_read_all_group_messages" const val supportInlineQueriesField = "supports_inline_queries" diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt index fed027677d..8a9b65a97d 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt @@ -62,7 +62,9 @@ data class ExtendedPrivateChatImpl( @SerialName(bioField) override val bio: String = "", @SerialName(hasPrivateForwardsField) - override val hasPrivateForwards: Boolean = false + override val hasPrivateForwards: Boolean = false, + @SerialName(hasRestrictedVoiceAndVideoMessagesField) + override val hasRestrictedVoiceAndVideoMessages: Boolean ) : ExtendedPrivateChat typealias ExtendedUser = ExtendedPrivateChatImpl diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt index 26cf8115ae..6705d8203d 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt @@ -19,6 +19,7 @@ sealed interface ExtendedGroupChat : GroupChat, ExtendedPublicChat { sealed interface ExtendedPrivateChat : PrivateChat, ExtendedChat { val bio: String val hasPrivateForwards: Boolean + val hasRestrictedVoiceAndVideoMessages: Boolean val allowCreateUserIdLink: Boolean get() = hasPrivateForwards