An Afghan official says the Taliban will attend a UN climate conference for the first time since their takeover of Afghanistan in 2021.