The measurement of Higgs boson production in association with a top quark-antiquark pair in the diphoton decay channel () is presented, based on the analysis of 139~fb of proton-proton collision data with center-of-mass energy TeV recorded with the ATLAS detector at the Large Hadron Collider. The analysis is performed using a simultaneous fit in seven signal-enriched event categories. The process is observed in the diphoton decay mode with a significance of 4.9 standard deviations relative to the background-only hypothesis. The expected significance is 4.2 standard deviations. The cross-section times the branching ratio is measured to be ~fb, in agreement with the Standard Model prediction.