A senior Iranian official says representatives from more than 90 countries are expected to attend the funeral of Ayatollah Seyyed Ali Khamenei.