<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_webapi(self, text, attachments=None, as_user=True, thread_ts=None):
 """ Send a reply using Web API (This function supports formatted message when using a bot integration) """

        self._client.send_message(
            self._body['channel'],
            text,
            attachments=attachments,
            as_user=as_user,
            thread_ts=thread_ts)