original_string: public function composingStart($to)
      {
          $message = new \sb\XMPP\Message();
  
          $message->setTo($to);
          $message->setFrom($this->jid);
          $message->setType('chat');
          $node = $message->createElement('composing');
          $attr = $message->createAttribute('xmlns');
          $node->appendChild($attr);
          $attr->appendChild($message->createTextNode('http://jabber.org/protocol/chatstates'));
  
          $message->doc->appendChild($node);
  
          $this->sendMessage($message);
      }
code: public function composingStart($to)
      {
          $message = new \sb\XMPP\Message();
  
          $message->setTo($to);
          $message->setFrom($this->jid);
          $message->setType('chat');
          $node = $message->createElement('composing');
          $attr = $message->createAttribute('xmlns');
          $node->appendChild($attr);
          $attr->appendChild($message->createTextNode('http://jabber.org/protocol/chatstates'));
  
          $message->doc->appendChild($node);
  
          $this->sendMessage($message);
      }
code_tokens: public function composingStart ( $ to ) { $ message = new \ sb \ XMPP \ Message ( ) ; $ message -> setTo ( $ to ) ; $ message -> setFrom ( $ this -> jid ) ; $ message -> setType ( 'chat' ) ; $ node = $ message -> createElement ( 'composing' ) ; $ attr = $ message -> createAttribute ( 'xmlns' ) ; $ node -> appendChild ( $ attr ) ; $ attr -> appendChild ( $ message -> createTextNode ( 'http://jabber.org/protocol/chatstates' ) ) ; $ message -> doc -> appendChild ( $ node ) ; $ this -> sendMessage ( $ message ) ; }
docstring: Send an indication that the bot is composing text.
  @param string $to The jid to send to
docstring_tokens: Send an indication that the bot is composing text .