On the nature of γ-ray bursts