mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
warnings fixes
This commit is contained in:
parent
7d7fb4efbc
commit
3c98f8fe4d
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user