Telegram

From ArchWiki
Jump to navigation Jump to search

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 in Arch:

Chat client plugins

Graphical clients

The official application:

Tip: Telegram uses Open Sans as the default font, which is provided by the optional dependency ttf-opensans.

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.
  • python-telegram-sendAUR, 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

Web-based clients

Tips and tricks

GTK dialogs in Telegram Desktop

If you want to use GTK file dialogs instead of Qt ones, set QT_QPA_PLATFORMTHEME environment variable to gtk3 and TDESKTOP_I_KNOW_ABOUT_GTK_INCOMPATIBILITY to 1. See [1] for details.

Wayland support

See Wayland#Qt 5 for instructions. Also, Wayland doesn't support absolute positioning, therefore notifications are positioned wrong. The only fix is to enable native notifications in settings.

Telegram resources about Arch Linux

Unread messages counter for Telegram Desktop

By default, only the icon in the system tray will show the number of unread messages. If you want to have the actual app icon to show the unread message counter as well, you can use the Unity badge integration, which can be handled by KDE and Gnome as well. To enable the Unity integration, you will have to install libunityAUR and start Telegram Desktop with the XDG_CURRENT_DESKTOP environment variable set to Unity, e.g. copy the .desktop file to ~/.local/share/applications/ and change the Exec line to start Telegram Desktop with the environment variable set instead.

Telegram and Plasma

In KDE Plasma, desktop session is restored on login by default. This causes Telegram to auto-start on login if it had not been closed on logout.

To change this behavior, you can disable Telegram's auto-start from System Settings > Workspace > Startup and Shutdown > Autostart.

Also, you can disable Session restoration by changing the option on System Settings > Workspace > Startup and Shutdown > Desktop Session > On Login. You may either exclude Telegram or select the "Start with an empty session" option. This should stop Telegram from auto-starting.

Problem with fonts

If you have problem with fonts, ttf-opensans can fix it