Modi's remarks came in response to a congratulatory message from Taiwan President Lai Ching-te on his election victory.