Telegram Desktop Download [TOP]

2 views
Skip to first unread message

Dawne Dam

unread,
Jan 20, 2024, 2:46:57 PM1/20/24
to cietysepconf
I saw there are various UDF libs for Telegram already (to my pleasure, I must say), but looks like they're for direct interaction with telegram API, so kinda to use them with a bot.
Unfortunately bot file management is severely limited in size of files (20mb compared to 4gb on premium normal user) and other aspects.
Therefore my last choice was to automate in some way telegram desktop in a way that directly interacts with the window (WinGetHandle, WinExists, etc etc.).
Unfortunately, probably due to the fact that as I understood telegram is packed with electron, and electron AFAIK just displays a webapp into an exe,, trying to use Window Info tool doesn't give any result beside a main window, which has the current chat name and a random number.
The only way to grab it is by classname like this:
telegram desktop download
But I'm unable to catch any other button/UI element info with the telegram application. They all give the same handle info of the main page.
I tried to disable/enable Spy++ detection logic but nothing changed.
This leaves me to 3 roads:
1) Maybe there is another way to detect the handles and I don't know?
2) Trying some injector ( -injector for example) to inject html/js directly and interact with it
So, the I wanted a version that was generated from upstream code potentially without modifications. tdesktop also has a quite complex build system which needs various upstream libraries (some of them in static form) with specific versions including slightly patched Qt 5.6.2 and gyp, so it was fun to test it with the power of snapcraft.
Since I was there I also fixed telegram to compile properly in armhf (I hated the red light on b.s.i!), and then if you have any hardware with such arch handy and a graphic session, please test it too.
PS: unity launcher / GNOME dock integration works, but having other .desktop files around in your systems (like the ones that the official build generates) could cause a wrong matching, so in that case, just get rid of /.local/share/applications/telegramdesktop.desktop
I had previously installed Telegram but recently it notified me that unless I updated the app it would stop working, so I removed it completely. Ready to reinstall. First I tried with synaptic, telegram said it's old version. Same for apt. What works is only the direct executable file downloaded from official site. Don't get me wrong I have no problem with using that. But the problem is that the executable file cannot be placed inside /opt because then it won't show up in the menu bar. It has to be somewhere out. I think it'd be better if apps were installed inside /opt else I might delete the file by mistake
f5d0e4f075
Reply all
Reply to author
Forward
0 new messages