In a discussion with Iranian state tv the official is quoted as saying "We have reached a good deal" with the major powers.