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

return serialname for messageId in RawMessage

This commit is contained in:
InsanusMokrassar 2020-11-06 00:37:56 +06:00
parent 3b1803e851
commit e45f9cf46a

View File

@ -22,12 +22,14 @@ import dev.inmo.tgbotapi.types.payments.Invoice
import dev.inmo.tgbotapi.types.payments.SuccessfulPayment
import dev.inmo.tgbotapi.types.polls.Poll
import dev.inmo.tgbotapi.types.venue.Venue
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlin.reflect.KClass
// TODO:: add PassportData type
@Serializable
internal data class RawMessage(
@SerialName(messageIdField)
val messageId: MessageIdentifier,
val date: TelegramDate,
private val chat: Chat,