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
array
null
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
Optional. Contact's last name.
$lastName : string | null
Contact's phone number.
$phoneNumber : string
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
$vcard : string | null