Use m.room.message with 'format' and 'formatted_body' extra keys as per #matrix-dev.