Question: how to restore accidentally deleted imessages?
Answer: If you deleted that message just now, you may be able to recover it by turning off Messages in iCloud asap (as soon as possible.) When you toggle off Messages in iCloud, a message pops up asking you if you want to download your messages and disable Messages in iCloud. Tap Disable and Download Messages.