1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00

warnings fixes

This commit is contained in:
InsanusMokrassar 2019-04-13 10:20:29 +08:00
parent 7d7fb4efbc
commit 3c98f8fe4d

View File

@ -59,7 +59,7 @@ data class RawMessage(
private val contact: Contact? = null, private val contact: Contact? = null,
private val location: Location? = null, private val location: Location? = null,
private val venue: Venue? = null, private val venue: Venue? = null,
private val new_chat_members: Array<User>? = null, private val new_chat_members: List<User>? = null,
private val left_chat_member: User? = null, private val left_chat_member: User? = null,
private val new_chat_title: String? = null, private val new_chat_title: String? = null,
@Serializable(PhotoSerializer::class) @Serializable(PhotoSerializer::class)
@ -82,7 +82,7 @@ data class RawMessage(
) { ) {
@Transient @Transient
private val content: MessageContent? by lazy { private val content: MessageContent? by lazy {
val adaptedCaptionEntities = caption ?.let { _ -> val adaptedCaptionEntities = caption ?.let {
caption_entities ?.map { caption_entities ?.map {
it.asMessageEntity(caption) it.asMessageEntity(caption)
} }