SendContact

@Serializable
data class SendContact(val chatId: ChatIdentifier, val phoneNumber: String, val firstName: String, val lastName: String? = null, val threadId: MessageThreadId? = chatId.threadId, val disableNotification: Boolean = false, val protectContent: Boolean = false, val replyToMessageId: MessageId? = null, val allowSendingWithoutReply: Boolean? = null, val replyMarkup: KeyboardMarkup? = null) : SendMessageRequest<ContentMessage<ContactContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<ContactContent>>

Constructors

Link copied to clipboard
constructor(chatId: ChatIdentifier, contact: Contact, threadId: MessageThreadId? = chatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null)
constructor(chatId: ChatIdentifier, phoneNumber: String, firstName: String, lastName: String? = null, threadId: MessageThreadId? = chatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null)

Properties

Link copied to clipboard
@SerialName(value = "allow_sending_without_reply")
open override val allowSendingWithoutReply: Boolean? = null
Link copied to clipboard
@SerialName(value = "chat_id")
open override val chatId: ChatIdentifier
Link copied to clipboard
@SerialName(value = "disable_notification")
open override val disableNotification: Boolean = false
Link copied to clipboard
@SerialName(value = "first_name")
val firstName: String
Link copied to clipboard
@SerialName(value = "last_name")
val lastName: String? = null
Link copied to clipboard
@SerialName(value = "phone_number")
val phoneNumber: String
Link copied to clipboard
@SerialName(value = "protect_content")
open override val protectContent: Boolean = false
Link copied to clipboard
@SerialName(value = "reply_markup")
open override val replyMarkup: KeyboardMarkup? = null
Link copied to clipboard
@SerialName(value = "reply_to_message_id")
open override val replyToMessageId: MessageId? = null
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<ContentMessage<ContactContent>>
Link copied to clipboard
@SerialName(value = "message_thread_id")
open override val threadId: MessageThreadId?

Functions

Link copied to clipboard
open override fun method(): String