India did not vote in the UN General Assembly resolution that called for an immediate humanitarian truce in the Israel-Hamas war.