Class SendContactMethod.

see
package Default

 Methods

create()

create(integer|string $chatId, string $phoneNumber, string $firstName, array|null $data = null) : \TgBotApi\BotApiBase\Method\SendContactMethod
Static

Parameters

$chatId

integerstring

$phoneNumber

string

$firstName

string

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Method\SendContactMethod

fill()

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

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. Pass True, if the message should be sent even if the specified replied-to message is not found.

$allowSendingWithoutReply : boolean | null

Default

 

Optional. Sends the message silently. Users will receive a notification with no sound.

$disableNotification : boolean | null

Default

 

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 interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null

Default

 

Optional. If the message is a reply, ID of the original message.

$replyToMessageId : integer | null

Default

 

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

$vcard : string | null

Default