InlineQueryResultContact

data class InlineQueryResultContact(type: String, id: String, phone_number: String, first_name: String, last_name: String?, vcard: String?, reply_markup: InlineKeyboardMarkup?, input_message_content: InputMessageContent?, thumb_url: String?, thumb_width: Long?, thumb_height: Long?) : InlineQueryResult

Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Constructors

InlineQueryResultContact
Link copied to clipboard
fun InlineQueryResultContact(type: String, id: String, phone_number: String, first_name: String, last_name: String? = null, vcard: String? = null, reply_markup: InlineKeyboardMarkup? = null, input_message_content: InputMessageContent? = null, thumb_url: String? = null, thumb_width: Long? = null, thumb_height: Long? = null)

Properties

first_name
Link copied to clipboard
val first_name: String
Contact's first name
id
Link copied to clipboard
val id: String
Unique identifier for this result, 1-64 Bytes
input_message_content
Link copied to clipboard
val input_message_content: InputMessageContent? = null
Optional.
last_name
Link copied to clipboard
val last_name: String? = null
Optional.
phone_number
Link copied to clipboard
val phone_number: String
Contact's phone number
reply_markup
Link copied to clipboard
val reply_markup: InlineKeyboardMarkup? = null
Optional.
thumb_height
Link copied to clipboard
val thumb_height: Long? = null
Optional.
thumb_url
Link copied to clipboard
val thumb_url: String? = null
Optional.
thumb_width
Link copied to clipboard
val thumb_width: Long? = null
Optional.
type
Link copied to clipboard
val type: String
Type of the result, must be contact
vcard
Link copied to clipboard
val vcard: String? = null
Optional.