Class InlineQueryResultContactType.

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.

see
package Default

 Methods

create()

create(string $id, string $phoneNumber, string $firstName, array|null $data = null) : \TgBotApi\BotApiBase\Type\InlineQueryResult\InlineQueryResultContactType
Static

Parameters

$id

string

$phoneNumber

string

$firstName

string

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Type\InlineQueryResult\InlineQueryResultContactType

fill()

fill(array $data, array $forbidden = array()
Inherited

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Contact's first name.

$firstName : string

Default

 

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

$inputMessageContent : \TgBotApi\BotApiBase\Type\InputMessageContent\InputMessageContentType | null

Default

 

Optional. Contact's last name.

$lastName : string | null

Default

 

Contact's phone number.

$phoneNumber : string

Default

 

Optional. Thumbnail height.

$thumbHeight : integer | null

Default

 

Optional. Url of the thumbnail for the result.

$thumbUrl : string | null

Default

 

Optional. Thumbnail width.

$thumbWidth : integer | null

Default

 

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

$vcard : string | null

Default