Added User parameter in sendMessage signature