'Sends a message. "send <roomid> <body>"'

def do_send(self, line):

    args = self._parse(line, ['roomid', 'body'])
    txn_id = ('txn%s' % int(time.time()))
    path = ('/rooms/%s/send/m.room.message/%s' % (urllib.quote(args['roomid']), txn_id))
    body_json = {'msgtype': 'm.text', 'body': args['body']}
    reactor.callFromThread(self._run_and_pprint, 'PUT', path, body_json)
