mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-07-04 23:30:49 +00:00
19 lines
595 B
Kotlin
19 lines
595 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.types
|
||
|
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.Photo
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.PhotoSerializer
|
||
|
import kotlinx.serialization.*
|
||
|
import kotlinx.serialization.internal.ArrayListSerializer
|
||
|
|
||
|
@Serializable
|
||
|
data class UserProfilePhotos (
|
||
|
@SerialName("total_count")
|
||
|
val count: Int,
|
||
|
@Serializable(UserProfilePhotosPhotosSerializer::class)
|
||
|
val photos: List<Photo>
|
||
|
)
|
||
|
|
||
|
object UserProfilePhotosPhotosSerializer : KSerializer<List<Photo>> by ArrayListSerializer(
|
||
|
PhotoSerializer
|
||
|
)
|