Question: how to transfer whatsapp messages to icloud from android?
Answer: Reinstall WhatsApp on your Android phone. ... 
Then launch WhatsApp on your Android phone and tap the three-dot menu found at the upper-right corner.
Tap on the “Settings” option and then select “Chats”.
Go to “Chat backup”.