Mageia maintainers do not build telegram-desktop from source code (unlike some other Linux distributions), instead Mageia uses the "get-telegram" package, which downloads a binary build from a Telegram server.
https://madb.mageia.org/package/show/name/get-telegram
However, Telegram developers stopped making 32-bit builds, so there is only hope for Linux distributions.
The "get-telegram" package downloads an old 2.4.4 version, which can no longer be used to log in. See screenshots:


I'll explain why. Telegram messenger has a lot of users and they couldn't get enough of 32 bit addressing, so at the end of 2021 they switched to 64 bit addressing of users/channels and the old applications were completely incompatible. Don't confuse 32/64 addressing with processor/system bits. It's more like an IPv4/IPv6 issue.
So, new working 32 bit builds for Linux are no longer supplied by Telegram. Neither by the developers of Mageia. What to do? You can build from source code yourself, but this is very hard (and long, requires a lot of memory), the project uses a lot of libraries.
There is another more hacker way. Get the package from another Linux distribution. Since, in the Linux world, packages built on a newer system usually won't run on an older system, we need a Linux distribution of a similar age to Mageia 8 or older. This is Debian 11 for example. Mageia 8 and Debian 11 released in 2021. There are also Rosa and ALT which provide Telegram, but I'm not sure, they are semi-rolling. So, let's pick Debian 11. It has two builds of Telegram, stable 3.1.1 (2021) and backport 4.6.5 (2023). I managed to run both builds on Mageia 8 i586 and I will tell you how.
https://packages.debian.org/bullseye/telegram-desktop
https://packages.debian.org/bullseye-ba ... am-desktop
I link to the web archive because versions may change on the Debian server and compatibility with Mageia may be degraded, other things may need to be done. I have checked these versions to make sure they work. You can remove the web archive reference from the URL or download a newer version from packages.debian.org
https://web.archive.org/web/20230323194 ... 2_i386.deb
https://web.archive.org/web/20230323183 ... 1_i386.deb
First, download and unpack the .deb packages. The easiest way to support deb is to install the "alien" package. This does not mean that you have to use it to convert deb to rpm, just "alien" will install the debian tools that the archiver will use, such as Engrampa.
Unpack at /home/user/telegram (where user is your username)
Create a folder /home/user/telegram/usr/lib
Install the following packages with urmpi:
- Code: Select all
libminizip1 libjpeg62 libkf5wayland5 libdbusmenu-qt5_2 librlottie0 libkf5coreaddons5 libatomic1
There might be more, see the terminal output.
Run the command:
- Code: Select all
cp /usr/lib/librlottie.so.0.2 /home/user/telegram/usr/lib/librlottie.so.0-1
For telegram-desktop 3.1.1, this is enough. For 4.6.5 you will also need to unpack this package https://web.archive.org/web/20230323192 ... 2_i386.deb and copy the .so files to /home/user/telegram/usr/lib
Run:
- Code: Select all
LD_LIBRARY_PATH=/home/user/telegram/usr/lib XDG_DATA_DIRS=/home/user/telegram/usr/share /home/user/telegram/usr/bin/telegram-desktop
If you want to create a .desktop file, add "env" at the beginning. I.e. env LD_LIBRARY_PATH=...
Bugs:
Version 4.6.5 crashes when trying to call GTK dialogs (version 3.1.1 does not crash). It means you will be able to download files from Telegram (they will be automatically placed in the Downloads folder), but you will not be able to upload them (in 4.6.5).
3.1.1 and 4.6.5 crash when trying to play audio/video (autorun may be disabled, however). But the same behavior is observed on Debian 11.
I would prefer version 3.1.1, but older versions of Telegram are not fully compatible with new features. For example, you will be refused messages containing new smiles, emoji, DRM.
Telegram stores the profile in .local/share/TelegramDesktop. Try not to mix up these folders between versions, otherwise authorization will disappear.
Now let's talk about authorization. In the old days, you could register in the desktop version with a pushbutton phone. Now you have to have a mobile app to register (you can delete it later). SMS at registration can still come to the pushbutton phone. But codes for new logins are no longer sent to SMS, but to all applications (mobile, desktop, web versions). So, you'll need either a smartphone or a browser that is authorized in web.telegram.org for a new login (for example, you can copy the browser profile folder from another computer, if the paths match).
I would say that telegram-desktop works much faster than the web version, But you have to be aware of bugs.
It is a pity that the developers of Mageea do not compile telegram-desktop themselves and provide a broken 32-bit "get-telegram". Although, there are very few 32-bit Linux users (unlike Windows 32-bit), it is an endangered species, unfortunately.
In the next article I will explain how to get python 2 to work in Mageia 8+ using pip2.