InlineQueryResultContact

data class InlineQueryResultContact(id: String, phoneNumber: String, firstName: String, lastName: String?, vcard: String?, replyMarkup: InlineKeyboardMarkup?, inputMessageContent: InputMessageContent?, thumbUrl: String?, thumbWidth: Int?, thumbHeight: Int?, type: String) : 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.

Parameters

id

Unique identifier for this result, 1-64 Bytes

phoneNumber

Contact's phone number

firstName

Contact's first name

lastName

Optional. Contact's last name

vcard

Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes

replyMarkup

Optional. Inline keyboard attached to the message

inputMessageContent

Optional. Content of the message to be sent instead of the contact

thumbUrl

Optional. Url of the thumbnail for the result

thumbWidth

Optional. Thumbnail width

thumbHeight

Optional. Thumbnail height

type

Type of the result, must be contact

Constructors

InlineQueryResultContact
Link copied to clipboard
common
fun InlineQueryResultContact(id: String, phoneNumber: String, firstName: String, lastName: String? = null, vcard: String? = null, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, thumbUrl: String? = null, thumbWidth: Int? = null, thumbHeight: Int? = null, type: String)
Unique identifier for this result, 1-64 Bytes

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component10
Link copied to clipboard
common
operator fun component10(): Int?
component11
Link copied to clipboard
common
operator fun component11(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): String?
component5
Link copied to clipboard
common
operator fun component5(): String?
component6
Link copied to clipboard
common
operator fun component6(): InlineKeyboardMarkup?
component7
Link copied to clipboard
common
operator fun component7(): InputMessageContent?
component8
Link copied to clipboard
common
operator fun component8(): String?
component9
Link copied to clipboard
common
operator fun component9(): Int?
copy
Link copied to clipboard
common
fun copy(id: String, phoneNumber: String, firstName: String, lastName: String? = null, vcard: String? = null, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, thumbUrl: String? = null, thumbWidth: Int? = null, thumbHeight: Int? = null, type: String): InlineQueryResultContact
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

firstName
Link copied to clipboard
common
val firstName: String
Contact's first name
id
Link copied to clipboard
common
val id: String
Unique identifier for this result, 1-64 Bytes
inputMessageContent
Link copied to clipboard
common
val inputMessageContent: InputMessageContent? = null
Optional.
lastName
Link copied to clipboard
common
val lastName: String? = null
Optional.
phoneNumber
Link copied to clipboard
common
val phoneNumber: String
Contact's phone number
replyMarkup
Link copied to clipboard
common
val replyMarkup: InlineKeyboardMarkup? = null
Optional.
thumbHeight
Link copied to clipboard
common
val thumbHeight: Int? = null
Optional.
thumbUrl
Link copied to clipboard
common
val thumbUrl: String? = null
Optional.
thumbWidth
Link copied to clipboard
common
val thumbWidth: Int? = null
Optional.
type
Link copied to clipboard
common
val type: String
Type of the result, must be contact
vcard
Link copied to clipboard
common
val vcard: String? = null
Optional.