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.
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
array
null
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
Optional. Content of the message to be sent instead of the contact.
$inputMessageContent : \TgBotApi\BotApiBase\Type\InputMessageContent\InputMessageContentType | null
Optional. Contact's last name.
$lastName : string | null
Contact's phone number.
$phoneNumber : string
Optional. Thumbnail height.
$thumbHeight : integer | null
Optional. Url of the thumbnail for the result.
$thumbUrl : string | null
Optional. Thumbnail width.
$thumbWidth : integer | null
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
$vcard : string | null