Telegram

Telegram is a cloud-based cross-platform instant messaging service with optional end-to-end encryption. Account creation requires a phone number.

The official clients are open-source but the code for recent versions is not always immediately published. The server-side code is proprietary.

Installation

You can use one of following methods in order to use Telegram:

Chat client plugins

Graphical clients

The official application built by Arch Linux: telegram-desktop.

Third-party clients:

Command-line clients

  • telegram-cli-gitAUR provides command-line interface to connect and use Telegram. For more information about the program, visit the program page on Github.
  • nctelegram-gitAUR is a command-line interface for Telegram based on Ncurses and needs telegram-cli-gitAUR to run. For more information about the program, visit the program page on Github.
  • Telegram terminal client. For more information about the program, visit the program page on Github.
  • , not a full client but a command-line tool to directly send messages or files via Telegram.
  • telega.el - GNU Emacs Telegram client.
  • TelegramTUI - terminal Telegam client with a pseudo-graphic GUI
  • Terminal-based Telegram client for Linux and macOS with support for external editor compose, visit the program page on Github.

Web-based clients

Tips and tricks

GTK dialogs in Telegram Desktop

If you want to use GTK file dialogs instead of Qt ones, set environment variable to .

KDE dialogs in Telegram Desktop

If you want to use KDE file dialogs instead of Qt ones, set environment variable to .

SVG icon theme in Telegram Desktop

If you want to use an icon theme based on svg image (e.g. ) install . See Qt#Icon theme is not applied for details.

Wayland support

GNOME Wayland may not set cursor settings for Telegram. This may result in cursors being of the wrong theme, size and not being able to resize the window.

Set and environment variables manually (e.g., and XCURSOR_SIZE=24)

See Wayland#Qt for further instructions.

xdg-open in Telegram Desktop

If you want to use xdg-open on t.me links and receive an error not finding a handler for tg:

xdg-mime default telegramdesktop.desktop application/x-xdg-protocol-tg
xdg-mime default telegramdesktop.desktop x-scheme-handler/tg

Failed to set real-time priority for thread: Operation not permitted

If you get the following error

Install , add yourself to the group and reboot. See Realtime process management#Configuring PAM for details.

HiDPI scaling

If you have Qt scaling enabled on your system, and the scaling factor is not an integer, you may encounter problems like pixelated images and icons. you may need to disable high-DPI scaling for Telegram separately.

Copy to your user-specific applications and edit it as follows:

You may need to update the database of desktop entries.

Audio backend

As Telegram makes use of OpenAL, it is possible to configure the audio settings by editing its config files, i.e. , or the environment variables listed here.

In case sound is not working due to an invalid audio backend being used, it can be overwritten by setting the environment variable or the property in the [general] section of the OpenAL config. The drivers value for example would try pulseaudio first and then fallback to the default driver list.

Choose correct web camera

Telegram version 3.7.1 does not allow to select the web camera to use in video conference. If you want to force telegram to use a different camera, as a workaround you can disable the unwanted camera device as described in .

Fcitx support for Qt 6 Telegram

Telegram-desktop is built against Qt 6 since 3.4.2-2. Users upgrading from an older version might notice Fcitx stop working for this application. To make it work again, install or the fcitx-im group. If using Fcitx5, install .

Changing the default file browser

On environments where the environment variable is unset (like when not running desktop environments, i.e only window managers) telegram-desktop falls back to a very basic file browser. Using the above mentioned variable, the user can change the default one to the one they like that belongs to a certain desktop environment. Valid values for this variable can found here. For example to use Thunar from the XFCE project:

gollark: I think I can pack a third reactor.
gollark: Two fusion reactors in a 13x13x13 room with all support (except bootup power).
gollark: In new versions of ComputerCraft you can view what's on pocket computers as if they were maps too.
gollark: Map displays?
gollark: Also, it's not actually entirely self-sufficient (oops...), I couldn't figure out a compact power source.

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.