You can read Malayalam in WhatsApp only if you install a system font. To do this, visit AndroidTweak and download the required patch files. These were created by the website's maintainers. If your phone is not rooted, this procedure is not available because it involves modifying system files.