MihaZupan / TelegramStorageParser

Library to decrypt and parse Telegram Desktop's storage
Other
59 stars 20 forks source link

Invalid Data error #3

Open thatskriptkid opened 6 years ago

thatskriptkid commented 6 years ago

Hi! I try to use your code for parsing Telegram Desktop (1.4.3) on Windows. Is it working for Windows? I constantly get InvalidData, because storageKey always equals 21. Could you help please?

file:Map.cs class: Map method: TryParseMap()

var mapStream = new DataStream(mapData);

while (!mapStream.AtEnd)

 {
var storageKey = (LocalStorageKey)mapStream.ReadUInt32(); // **here, storageKey = 21**
if (!ReadKey(storageKey, mapStream, storage)) // **ReadKey() doesn't have condition for 21**
return ParsingState.InvalidData;
}
MihaZupan commented 6 years ago

Same as #1, the desktop client has been updated and I haven't gotten around to updating the library yet. I'll see if I have some time today

thatskriptkid commented 6 years ago

Ok, thanks!