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:
parent
3b1803e851
commit
e45f9cf46a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user