I just noticed that when a message is pinned or removed from pinned messages, the message is then outputted again with the edit prefix.
I guess this is because whether a message is pinned or not is stored in the message data itself.
Thus a check if the message has been pinned or depinned and if the message text has been modified would allow you to filter out the pins and depins, or display them with their own prefix.
This is especially noticeable on channels where a lot of pins are used and removed, since weeks or months old messages suddenly get "edited" without any changes to them.
I just noticed that when a message is pinned or removed from pinned messages, the message is then outputted again with the edit prefix.
I guess this is because whether a message is pinned or not is stored in the message data itself. Thus a check if the message has been pinned or depinned and if the message text has been modified would allow you to filter out the pins and depins, or display them with their own prefix.
This is especially noticeable on channels where a lot of pins are used and removed, since weeks or months old messages suddenly get "edited" without any changes to them.