opentele
opentele copied to clipboard
Missing emum lskCustomEmojiKeys caused tdata loading fail
Telegram add a value named lskCustomEmojiKeys in (https://github.com/telegramdesktop/tdesktop/commit/ddd5021966568a7d999aa6d35cd069a6fbc2aa3b)
so opentele can not load tdata when find this key
it will raise an exception here
https://github.com/thedemons/opentele/blob/ff90c36a867cf7902e80f480a35041c5e7902e4c/src/td/account.py#L214
Hi, thanks for the detailed research into the issue!
Unfortunately, I don't have the time right now to take a look at the problem. Would you mind making a pull request?
The map data isn't really that important so I think just adding lskCustomEmojiKeys
to the enum and these lines should fix the issue:
installedCustomEmojiKey = 0
recentCustomEmojiKey = 0
archivedCustomEmojiKey = 0
elif keyType == lskType.lskCustomEmojiKeys:
installedCustomEmojiKey = map.stream.readUInt64()
recentCustomEmojiKey = map.stream.readUInt64()
archivedCustomEmojiKey = map.stream.readUInt64()