Fix sendMessage

$params array must be strictly ordered as described in API documantation