1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 00:57:13 +00:00

ExtendedChat#chatPhoto now is nullable

This commit is contained in:
InsanusMokrassar 2019-08-12 17:06:57 +06:00
parent 9e469c7825
commit 647d1e79f7
5 changed files with 5 additions and 5 deletions

View File

@ -7,5 +7,5 @@ import kotlinx.serialization.Serializable
@Serializable(ExtendedChatSerializer::class)
interface ExtendedChat : Chat {
val chatPhoto: ChatPhoto
val chatPhoto: ChatPhoto?
}

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)