Class InputContactMessageContentType.

see
package Default
inherited_from \TgBotApi\BotApiBase\Type\InputMessageContent\InputMessageContentType

 Methods

create()

create(string $phoneNumber, string $firstName, array|null $data = null) : \TgBotApi\BotApiBase\Type\InputMessageContent\InputContactMessageContentType
Static

Parameters

$phoneNumber

string

$firstName

string

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Type\InputMessageContent\InputContactMessageContentType

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. Contact's last name.

$lastName : string | null

Default

 

Contact's phone number.

$phoneNumber : string

Default

 

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

$vcard : string | null

Default