Dozens of foreign dignitaries attend the ceremony in Niamey taking place two days after the government said it foiled a coup attempt.