In admin panel Sales->Orders section, while viewing the order, It show order information like below,How to add comment programatically…. And it needs to save (sale_order_status_history) table Suggest a solution..
Magento 2 – Add Comments Programmatically for Order in Admin Panel
magento2.2PHPsales-order
Best Answer
you can also user magento repo object as well.