SendContactRequest

data class SendContactRequest(chat_id: String, phone_number: String, first_name: String, last_name: String?, vcard: String?, disable_notification: Boolean?, reply_to_message_id: Long?, allow_sending_without_reply: Boolean?, reply_markup: KeyboardOption?) : TelegramRequest

Use this method to send phone contacts. On success, the sent Message is returned.

Constructors

SendContactRequest
Link copied to clipboard
fun SendContactRequest(chat_id: String, phone_number: String, first_name: String, last_name: String? = null, vcard: String? = null, disable_notification: Boolean? = null, reply_to_message_id: Long? = null, allow_sending_without_reply: Boolean? = null, reply_markup: KeyboardOption? = null)

Properties

allow_sending_without_reply
Link copied to clipboard
val allow_sending_without_reply: Boolean? = null
Pass True, if the message should be sent even if the specified replied-to message is not found
chat_id
Link copied to clipboard
val chat_id: String
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
disable_notification
Link copied to clipboard
val disable_notification: Boolean? = null
Sends the message
first_name
Link copied to clipboard
val first_name: String
Contact's first name
last_name
Link copied to clipboard
val last_name: String? = null
Contact's last name
phone_number
Link copied to clipboard
val phone_number: String
Contact's phone number
reply_markup
Link copied to clipboard
val reply_markup: KeyboardOption? = null
Additional interface options.
reply_to_message_id
Link copied to clipboard
val reply_to_message_id: Long? = null
If the message is a reply, ID of the original message
vcard
Link copied to clipboard
val vcard: String? = null
Additional data about the contact in the form of a © 2021 CopyrightGenerated by dokka