Telegram\Bot\Api::sendContact PHP Метод

sendContact() публичный Метод

$params = [ 'chat_id' => '', 'phone_number' => '', 'first_name' => '', 'last_name' => '', 'disable_notification' => '', 'reply_to_message_id' => '', 'reply_markup' => '', ];
public sendContact ( array $params ) : Message
$params array
Результат Telegram\Bot\Objects\Message
    public function sendContact(array $params)
    {
        $response = $this->post('sendContact', $params);
        return new Message($response->getDecodedBody());
    }