class InputContactMessageContent implements InputMessageContentInterface

Represents the content of a contact message to be sent as the result of an inline query.

Methods

__construct(string $phone_number, string $first_name, string|null $last_name = null, string|null $vcard = null)

No description

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.

Details

at line 16
__construct(string $phone_number, string $first_name, string|null $last_name = null, string|null $vcard = null)

No description

Parameters

string $phone_number
string $first_name
string|null $last_name
string|null $vcard

at line 27
string getPhoneNumber()

Contact's phone number.

Return Value

string

at line 35
string getFirstName()

Contact's first name.

Return Value

string

at line 43
string|null getLastName()

Optional. Contact's last name.

Return Value

string|null

at line 51
string|null getVcard()

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

Return Value

string|null