diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/abstracts/extended/ExtendedChat.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/abstracts/extended/ExtendedChat.kt index 24a13a19d1..c67932e602 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/abstracts/extended/ExtendedChat.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/abstracts/extended/ExtendedChat.kt @@ -7,5 +7,5 @@ import kotlinx.serialization.Serializable @Serializable(ExtendedChatSerializer::class) interface ExtendedChat : Chat { - val chatPhoto: ChatPhoto + val chatPhoto: ChatPhoto? } \ No newline at end of file diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedChannelChatImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedChannelChatImpl.kt index 7f47b04816..d1fa0dd594 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedChannelChatImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedChannelChatImpl.kt @@ -15,7 +15,7 @@ data class ExtendedChannelChatImpl( @SerialName(usernameField) override val username: Username? = null, @SerialName(photoField) - override val chatPhoto: ChatPhoto, + override val chatPhoto: ChatPhoto? = null, @SerialName(descriptionField) override val description: String = "", @SerialName(inviteLinkField) diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedGroupChatImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedGroupChatImpl.kt index f9990cd24d..2eb20fc6ca 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedGroupChatImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedGroupChatImpl.kt @@ -14,7 +14,7 @@ data class ExtendedGroupChatImpl( @SerialName(titleField) override val title: String, @SerialName(photoField) - override val chatPhoto: ChatPhoto, + override val chatPhoto: ChatPhoto? = null, @SerialName(permissionsField) override val permissions: ChatPermissions, @SerialName(descriptionField) diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedPrivateChatImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedPrivateChatImpl.kt index c960d71a08..3ccc572acd 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedPrivateChatImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedPrivateChatImpl.kt @@ -10,7 +10,7 @@ data class ExtendedPrivateChatImpl( @SerialName(idField) override val id: ChatId, @SerialName(photoField) - override val chatPhoto: ChatPhoto, + override val chatPhoto: ChatPhoto? = null, @SerialName(usernameField) override val username: Username? = null, @SerialName(firstNameField) diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedSupergroupChatImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedSupergroupChatImpl.kt index c781b3ff6c..1e352548b2 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedSupergroupChatImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/chat/extended/ExtendedSupergroupChatImpl.kt @@ -16,7 +16,7 @@ data class ExtendedSupergroupChatImpl( @SerialName(usernameField) override val username: Username? = null, @SerialName(photoField) - override val chatPhoto: ChatPhoto, + override val chatPhoto: ChatPhoto? = null, @SerialName(permissionsField) override val permissions: ChatPermissions, @SerialName(descriptionField)