Need help sorting messages from Telegram out of chronological order
$10-30 USD
Closed
Posted almost 5 years ago
$10-30 USD
Paid on delivery
I exported a very long Telegram group chat and I'd like to sort them in a nested format by message/reply. In its normal state, its chronologically sorted, so if I reply to a message first posted 3 weeks ago, my reply will be no where near it. I want my reply to appear under the message I am replying to. In excel.
I kind of found a way by stripping everything up to the Message # in the XML, but I ran into some issues.
I'm sure one of you could figure it out in no time. Here's a snippet:
Message 1:
<div class="message default clearfix" id="message4217">
<div class="pull_left userpic_wrap">
<div class="userpic userpic1" style="width: 42px; height: 42px">
<div class="initials" style="line-height: 42px">
</div>
</div>
</div>
<div class="body">
<div class="pull_right date details" title="29.03.2016 15:37:04">
15:37
</div>
<div class="from_name">
Deleted Account
</div>
<div class="text">
Does anyone have an idea? </div>
</div>
</div>
Here's a reply (keep in mind this can occur dozens of messages later, and I need them to be resorted into order - the common link will be the "in reply to XX" tag - you can use this to sort):
<div class="reply_to details">
In reply to <a href="#go_to_message4215" onclick="return GoToMessage(4217)">this message</a>
</div>
<div class="text">
I am filled with ideas
</div>
</div>
</div>
Am an ophant boy who has struggled alot in this life so I will do everything possible to make money to have a better standard of living .I promise you of good conduct and I promise you the best
Less