Contact

@Serializable
data class Contact(val phoneNumber: String, val firstName: String, val lastName: String? = null, val userId: UserId? = null, val vcard: String? = null) : CommonContactData, ReplyInfo.External.ContentVariant

Constructors

Link copied to clipboard
constructor(phoneNumber: String, firstName: String, lastName: String? = null, userId: UserId? = null, vcard: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "first_name")
open override val firstName: String
Link copied to clipboard
@SerialName(value = "last_name")
open override val lastName: String? = null
Link copied to clipboard
@SerialName(value = "phone_number")
open override val phoneNumber: String
Link copied to clipboard
@SerialName(value = "user_id")
val userId: UserId? = null
Link copied to clipboard
@SerialName(value = "vcard")
open override val vcard: String? = null

Functions

Link copied to clipboard
fun Contact.toRequest(chatId: ChatIdentifier, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendContact