Telegram is not better than WhatsApp in the very important aspect that it is not end-to-end encrypted. You can balance up the risks of facebook inserting malicious code into their client against the risks of your data being accessable at rest on Telegram's servers, but it's not at all clear Telegram is in a better spot there.