1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 03:58:44 +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) @Serializable(ExtendedChatSerializer::class)
interface ExtendedChat : Chat { interface ExtendedChat : Chat {
val chatPhoto: ChatPhoto val chatPhoto: ChatPhoto?
} }

View File

@ -15,7 +15,7 @@ data class ExtendedChannelChatImpl(
@SerialName(usernameField) @SerialName(usernameField)
override val username: Username? = null, override val username: Username? = null,
@SerialName(photoField) @SerialName(photoField)
override val chatPhoto: ChatPhoto, override val chatPhoto: ChatPhoto? = null,
@SerialName(descriptionField) @SerialName(descriptionField)
override val description: String = "", override val description: String = "",
@SerialName(inviteLinkField) @SerialName(inviteLinkField)

View File

@ -14,7 +14,7 @@ data class ExtendedGroupChatImpl(
@SerialName(titleField) @SerialName(titleField)
override val title: String, override val title: String,
@SerialName(photoField) @SerialName(photoField)
override val chatPhoto: ChatPhoto, override val chatPhoto: ChatPhoto? = null,
@SerialName(permissionsField) @SerialName(permissionsField)
override val permissions: ChatPermissions, override val permissions: ChatPermissions,
@SerialName(descriptionField) @SerialName(descriptionField)

View File

@ -10,7 +10,7 @@ data class ExtendedPrivateChatImpl(
@SerialName(idField) @SerialName(idField)
override val id: ChatId, override val id: ChatId,
@SerialName(photoField) @SerialName(photoField)
override val chatPhoto: ChatPhoto, override val chatPhoto: ChatPhoto? = null,
@SerialName(usernameField) @SerialName(usernameField)
override val username: Username? = null, override val username: Username? = null,
@SerialName(firstNameField) @SerialName(firstNameField)

View File

@ -16,7 +16,7 @@ data class ExtendedSupergroupChatImpl(
@SerialName(usernameField) @SerialName(usernameField)
override val username: Username? = null, override val username: Username? = null,
@SerialName(photoField) @SerialName(photoField)
override val chatPhoto: ChatPhoto, override val chatPhoto: ChatPhoto? = null,
@SerialName(permissionsField) @SerialName(permissionsField)
override val permissions: ChatPermissions, override val permissions: ChatPermissions,
@SerialName(descriptionField) @SerialName(descriptionField)