It won't be easy, but we definitely want to properly process message edits in both directions: Telegram → XMPP and XMPP → Telegram.
For XMPP, see XEP-0308, for Telegram see the corresponding docs.