enable download chat history in telegram desktop for protected content

Job ID: 33685551

Budget: $10 – $30 USD

in telegram desktop, there is a tool named "export chat history" that let you download a chat (text,image, video, ...) to a folder. but this tools is disabled if the chat is protected content.

i need someone found the flag to determine if a chat is protected and disable it, so the export chat history always appear. it's easy task as you need to just figure out and override one variable, but need to spend time and find it's occurrences and make sure all kind of content is downloadable. feel free to hardcode it just to false or anything that works for you

1- you know how to use telegram and saw this feature before https://github.com/telegramdesktop/tdesktop
2- you know c++
3- you know how to build the telegram desktop https://github.com/telegramdesktop/tdesktop/blob/dev/docs/building-win-x64.md

I expect a zip of source code (.git is enabled and committed) and one executable version (for windows, built and ready to test)

to know the bid isn't from bots, please prefix your answer with result of 2*10=?
Related categories: C Programming C++ Programming Telegram API