mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
20 lines
446 B
Kotlin
20 lines
446 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.types
|
||
|
|
||
|
import kotlinx.serialization.*
|
||
|
|
||
|
@Serializable
|
||
|
data class Contact(
|
||
|
@SerialName(phoneNumberField)
|
||
|
val phoneNumber: String,
|
||
|
@SerialName(firstNameField)
|
||
|
val firstName: String,
|
||
|
@SerialName(lastNameField)
|
||
|
@Optional
|
||
|
val lastName: String? = null,
|
||
|
@SerialName(userIdField)
|
||
|
@Optional
|
||
|
val userId: UserId? = null,
|
||
|
@Optional
|
||
|
val vcard: String? = null
|
||
|
)
|