Open Lucasquattro opened 1 month ago
I've exported one of my chats and here (Windows client) JSON is a bit different and it looks something like this:
{
"name": "XYZ",
"type": "personal_chat",
"id": 1234567890,
"messages": [
...
Can you simply delete everything before "list": [
and the end parentheses for it and retest?
On Windows I export the chat from the dotted menu and I get only one chat exported - while your structure suggest that you could have more than one chat exported in JSON file.
Thanks, the solved the issue!
Unfortunately I can't find a way to export single chat in json format on macos, it'll do it only in html format and so I used massive chat export from setting and cleared unnecessary data.
I got one more question now: could the import be chronologically integrated with existing messages or the only way is to have a bunch of messages at the end of an existing chat with all these markers on the time?
Thanks again!
Thanks, the solved the issue!
Unfortunately I can't find a way to export single chat in json format on macos, it'll do it only in html format and so I used massive chat export from setting and cleared unnecessary data.
I'm not sure why is that - perhaps the same functionality might be implemented on other clients at some point in the future. For now I guess it's not that much of a problem to "clean" the JSON out as described.
I got one more question now: could the import be chronologically integrated with existing messages or the only way is to have a bunch of messages at the end of an existing chat with all these markers on the time?
This is up to Telegram servers/API and (https://telegram.org/blog/move-history):
Messages will be imported into the current day but will also include their original timestamps.
I'm not sure why is that - perhaps the same functionality might be implemented on other clients at some point in the future. For now I guess it's not that much of a problem to "clean" the JSON out as described.
idk neither, anyway with a bit of cleanup it works!
This is up to Telegram servers/API and (https://telegram.org/blog/move-history): Messages will be imported into the current day but will also include their original timestamps.
well that's unfortunate, hope they rethink about this limitation for the future!
Hi there, I tried to run the script but it seems not correcly recognizing the json content for some reason.
Is previously ran into this error and commented out the line 176 as suggested in other discussion:
But now I'm stucked here, any ideas? Thanks!
I'm on macos, python3 on last version, all requirements satisfied and below the example json I'm using: