code: def sendPinnedLocation(
          self, location, message=None, thread_id=None, thread_type=None
      ):
          
          self._sendLocation(
              location=location,
              current=False,
              message=message,
              thread_id=thread_id,
              thread_type=thread_type,
          )
docs: Sends a given location to a thread as a pinned location
  
          :param location: Location to send
          :param message: Additional message
          :param thread_id: User/Group ID to send to. See :ref:`intro_threads`
          :param thread_type: See :ref:`intro_threads`
          :type location: models.LocationAttachment
          :type message: models.Message
          :type thread_type: models.ThreadType
          :return: :ref:`Message ID <intro_message_ids>` of the sent message
          :raises: FBchatException if request failed