The sqlite files of QQ and WeChat are unencrypted, you can open them to see the table structure reference. General historical data is archived in sqlite, and the recent contact list with the last message is simply stored in plist.
It is recommended that you take a look at the SQLight structure of WeChat. One session is one table, and pictures, sounds, expressions are stored in files. Each record must have at least ID, message type, message body, sending time, from, to, etc.
The sqlite files of QQ and WeChat are unencrypted, you can open them to see the table structure reference. General historical data is archived in sqlite, and the recent contact list with the last message is simply stored in plist.
Use files, one file corresponds to one chat object
Coredata, sqlite, files are all fine, it depends on what you use
It is recommended that you take a look at the SQLight structure of WeChat. One session is one table, and pictures, sounds, expressions are stored in files. Each record must have at least ID, message type, message body, sending time, from, to, etc.