class InlineQueryResultContact implements InlineQueryResultInterface

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.

Methods

__construct(string $type, string $id, string $phone_number, string $first_name, string|null $last_name = null, string|null $vcard = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null, string|null $thumb_url = null, int|null $thumb_width = null, int|null $thumb_height = null)

No description

string
getType()

Type of the result, must be contact.

string
getId()

Unique identifier for this result, 1-64 Bytes.

string
getPhoneNumber()

Contact's phone number.

string
getFirstName()

Contact's first name.

string|null
getLastName()

Optional. Contact's last name.

string|null
getVcard()

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

InlineKeyboardMarkup|null
getReplyMarkup()

Optional. Inline keyboard attached to the message.

InputMessageContentInterface|null
getInputMessageContent()

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

string|null
getThumbUrl()

Optional. Url of the thumbnail for the result.

int|null
getThumbWidth()

Optional. Thumbnail width.

int|null
getThumbHeight()

Optional. Thumbnail height.

Details

at line 23
__construct(string $type, string $id, string $phone_number, string $first_name, string|null $last_name = null, string|null $vcard = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null, string|null $thumb_url = null, int|null $thumb_width = null, int|null $thumb_height = null)

No description

Parameters

string $type
string $id
string $phone_number
string $first_name
string|null $last_name
string|null $vcard
InlineKeyboardMarkup|null $reply_markup
InputMessageContentInterface|null $input_message_content
string|null $thumb_url
int|null $thumb_width
int|null $thumb_height

at line 41
string getType()

Type of the result, must be contact.

Return Value

string

at line 49
string getId()

Unique identifier for this result, 1-64 Bytes.

Return Value

string

at line 57
string getPhoneNumber()

Contact's phone number.

Return Value

string

at line 65
string getFirstName()

Contact's first name.

Return Value

string

at line 73
string|null getLastName()

Optional. Contact's last name.

Return Value

string|null

at line 81
string|null getVcard()

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

Return Value

string|null

at line 89
InlineKeyboardMarkup|null getReplyMarkup()

Optional. Inline keyboard attached to the message.

Return Value

InlineKeyboardMarkup|null

at line 97
InputMessageContentInterface|null getInputMessageContent()

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

Return Value

InputMessageContentInterface|null

at line 105
string|null getThumbUrl()

Optional. Url of the thumbnail for the result.

Return Value

string|null

at line 113
int|null getThumbWidth()

Optional. Thumbnail width.

Return Value

int|null

at line 121
int|null getThumbHeight()

Optional. Thumbnail height.

Return Value

int|null