public function sendLocation(
        $chatId,
        $latitude,
        $longitude,
        $replyToMessageId = null,
        $replyMarkup = null,
        $disableNotification = false,
        $livePeriod = null
    ) {
        return Message::fromResponse($this->call('sendLocation', [
            'chat_id'              => $chatId,
            'latitude'             => $latitude,
            'longitude'            => $longitude,
            'live_period'          => $livePeriod,
            'reply_to_message_id'  => $replyToMessageId,
            'reply_markup'         => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
            'disable_notification' => (bool)$disableNotification,
        ]));
    }
public function sendLocation(
        $chatId,
        $latitude,
        $longitude,
        $replyToMessageId = null,
        $replyMarkup = null,
        $disableNotification = false,
        $livePeriod = null
    ) {
        return Message::fromResponse($this->call('sendLocation', [
            'chat_id'              => $chatId,
            'latitude'             => $latitude,
            'longitude'            => $longitude,
            'live_period'          => $livePeriod,
            'reply_to_message_id'  => $replyToMessageId,
            'reply_markup'         => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
            'disable_notification' => (bool)$disableNotification,
        ]));
    }
public function sendLocation ( $ chatId , $ latitude , $ longitude , $ replyToMessageId = null , $ replyMarkup = null , $ disableNotification = false , $ livePeriod = null ) { return Message :: fromResponse ( $ this -> call ( 'sendLocation' , [ 'chat_id' => $ chatId , 'latitude' => $ latitude , 'longitude' => $ longitude , 'live_period' => $ livePeriod , 'reply_to_message_id' => $ replyToMessageId , 'reply_markup' => is_null ( $ replyMarkup ) ? $ replyMarkup : $ replyMarkup -> toJson ( ) , 'disable_notification' => ( bool ) $ disableNotification , ] ) ) ; }
Use this method to send point on the map. On success, the sent Message is returned.

@param int|string                                                              $chatId
@param float                                                                   $latitude
@param float                                                                   $longitude
@param int|null                                                                $replyToMessageId
@param Types\ReplyKeyboardMarkup|Types\ReplyKeyboardHide|Types\ForceReply|
Types\ReplyKeyboardRemove|null $replyMarkup
@param bool                                                                    $disableNotification

@param null|int                                                                $livePeriod
@return \TelegramBot\Api\Types\Message
Use this method to send point on the map . On success the sent Message is returned .