Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can`t parse new desktop storage after last update #1

Open
mr-tron opened this issue Oct 22, 2018 · 7 comments
Open

Can`t parse new desktop storage after last update #1

mr-tron opened this issue Oct 22, 2018 · 7 comments
Labels
tdesktop-updated TelegramDesktop was updated, changes have to be copied over

Comments

@mr-tron
Copy link

mr-tron commented Oct 22, 2018

I added

                default:
                    Console.WriteLine(storageKey);
                    return false;

to src/TelegramStorageParser/TelegramDesktop/Map.cs:144

and got
ouput of example program:

165804707
Something went wrong: InvalidData
@MihaZupan
Copy link
Owner

You have to advance the 'stream' by the right amount of bytes (that's figured out by looking at the local_storage.cpp of the official client).

I'll update the library tomorrow.

@MihaZupan MihaZupan added the tdesktop-updated TelegramDesktop was updated, changes have to be copied over label Oct 22, 2018
@MihaZupan
Copy link
Owner

@mr-tron Out of curiosity, what's your use case for the library?

@mr-tron
Copy link
Author

mr-tron commented Oct 22, 2018

background controllable cacher for client. for me it`s easier than edit client on c++

@MihaZupan
Copy link
Owner

Turns out the storage for images was redesigned in the last several updates and they are now located in a different folder architecture. It'll take me a bit longer to dif through all of it tho.

@faejr
Copy link

faejr commented May 27, 2019

@MihaZupan Is this project entirely dead or will there be some update to it? I made an attempt at updating it myself but my knowledge appears to be lacking

@MihaZupan
Copy link
Owner

I might revisit it during the holidays but currently I don't have the spare time to look through all TelegramDesktop source changes.

@faejr
Copy link

faejr commented May 27, 2019

Thanks for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tdesktop-updated TelegramDesktop was updated, changes have to be copied over
Projects
None yet
Development

No branches or pull requests

3 participants