TelegramStorageParser icon indicating copy to clipboard operation
TelegramStorageParser copied to clipboard

Invalid Data error

Open thatskriptkid opened this issue 6 years ago • 2 comments

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;
}

thatskriptkid avatar Nov 01 '18 08:11 thatskriptkid

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

MihaZupan avatar Nov 01 '18 11:11 MihaZupan

Ok, thanks!

thatskriptkid avatar Nov 01 '18 11:11 thatskriptkid