Added sendTextMessage plus fixed takeVideo error