tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

JSON export produces very dynamic JSON

Open CrazyHackGUT opened this issue 3 years ago • 1 comments

Steps to reproduce

  1. Open any chat.
  2. Do "Chat export" in JSON format.
  3. Open JSON.
  4. See very dynamic type in text field for messages.

Expected behaviour

I expected see static string or array with objects only, what can be parsed without any issues on .NET via JSON.NET. It requires declare types for every field in classes, but i can't describe type without scratches.

Actual behaviour

text can be two different types:

  • string, if message don't contains any message entities (bold/italic markup and etc.)
  • array with mixed types (string and object)

Operating system

Windows 11

Version of Telegram Desktop

4.1.1

Installation source

Static binary from official website

Logs

No response

CrazyHackGUT avatar Aug 29 '22 07:08 CrazyHackGUT

Please check the latest beta version.

23rd avatar Sep 16 '22 06:09 23rd

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Oct 01 '22 00:10 github-actions[bot]