The normal messages seem to have normal ascending order numbers. The order seems to be the order of data and time here. Chatmessages can easily be recovered from the tgdata_index.db. It is not obvious who is sending what messages in this database-table. Further investigation is needed to see how one can see who sent what message.

Notice that in the database/raw data, the first letter is not capital, while in the chat they are!