How do I start Telegram messenger from the command line?
I have tried "telegram", but it's not that.
I have installed Telegram via ppa: ppa:atareao/telegram.
command lineexecute-commandtelegram
How do I start Telegram messenger from the command line?
I have tried "telegram", but it's not that.
I have installed Telegram via ppa: ppa:atareao/telegram.
You have several GUI options:
If you are using Ubuntu 16.04 and up, you can go to Software Center and search for telegram. You should find the following:
Now click on the telegram-desktop package to install it.
You can also go to the terminal and type:
sudo snap install telegram-desktop
Which you can do it 2 ways, either using the PPA way, which you would simply run the following lines:
sudo add-apt-repository ppa:atareao/telegram
sudo apt-get update
sudo apt-get install telegram
or you would go to the official site and download the tar package from there and untar/uncompress the file either on your HOME folder or in the /opt
folder (Whichever you want). Doing it this way you would then need to execute Telegram at least once from within the uncompressed folder.
To install Telegram via snap, you can simply do the following:
sudo snap install telegram-desktop
To run, simply open Dash and type Telegram. You will see an option called "Telegram Desktop". If you encounter any issue like Telegram not opening the Desktop version, but instead the Web version, run the following:
snap run telegram-desktop
or
/snap/bin/telegram-desktop
This should make the Telegram Desktop version appear on the Ubuntu Dash.
Telegram Desktop 0.9.18 on Ubuntu 15.10
It works perfectly and integrates well with Ubuntu (Including Unity Launcher and Panel). You can Drag/Drop images, files, videos and more. You can copy/paste text and do everything easily. This PPA is based on the Official Telegram Desktop in https://desktop.telegram.org/
There is a PPA that can be used to work on Telegram and is based on the Webogram:
sudo add-apt-repository ppa:costales/unity-webapps-telegram
sudo apt-get update
sudo apt-get install unity-webapps-telegram
Here it what it looks running on 15.10:
Another way of using Telegram on your Ubuntu PC is through the Chrome Store and search for Telegram, or click on the Google Store Telegram Link. the app should appear on the App list in the Google chrome as Webogram like such:
In both cases you will only get asked once for your telephone number and a message carrying a 5 digit code will arrive on your phone. You type this code to the Ubuntu app or Chrome app and you are done.
WebApps | Desktop PPA | Chrome PPA | Official
Unity Integration Yes Yes Yes Yes
Auto Updated Yes Yes Yes Yes
Can use Telegram Update Feature No Yes No Yes
Updated Frequently / Faster No Yes No Yes
Time between Updates Weeks Days Days Minutes
Uses Notification System Yes Yes Yes Yes
Notifies user in Tray Icon No Yes No Yes
Depends on a Browser Yes No Yes No
Easily execute from Launcher/Dash Yes Yes Yes Yes
Support Drag/Drop Yes Yes Yes Yes
Support Video/Img Yes Yes Yes Yes
Support URL Links / Opening Browser Yes Yes Yes Yes
Resource Usage Mid Low High Low
Support Download/Upload Files Yes Yes Yes Yes
Send Audio Recordings on the fly Yes Yes No Yes
Copy/Paste To/From Clipboard Yes Yes Yes Yes
Compatible with Latest Ubuntu No Yes Yes Yes
WebApps PPA -Telegram version using the ppa:costales/unity-webapps-telegram PPA which uses the Unity WebApp Browser (Webogram). Currently works perfectly and integrates with Unity.
Desktop PPA - This is the PPA created by ppa:atareao/telegram. It works perfectly with Ubuntu and even updates itself rather quickly with the latest version. It offers Top Panel tray icon support and notification.
Chrome PPA - It depends on the Chrome Browser since it is used as an Chrome App. It also integrates with Unity but you need to have Chrome opened in order to make it work.
Desktop Official - This is the terminal version which you download and decompress. Simply execute from terminal and you will have it working in no time. It offers a manual update system.
Telegram Web - https://web.telegram.org/
The user only needs to provide their phone number, receive the Telegram 5 digit code on their phone and type it in the website.
Telegram Desktop - https://desktop.telegram.org/
The user needs to download and decompress the file, then run it from the terminal.
In order for this to work, you can download the Official Desktop version which includes to files, the Telegram binary and the Updater. Run the updater to get the latest version or click on the Update option inside the Telegram app when an update is available.
Another way that helps affects the Telegram Desktop PPA and it works by executing the Updater binary mentioned above from the Official Desktop version while having the Telegram Desktop PPA installed already. After running the Updater once, any new versions that come out will also affect the Telegram Desktop PPA and you can keep on updating Telegram via the Update option.
Telegram offers several ways to use and contribute to them:
In all cases, you can participate, contribute, file bug reports and ideas. Additional here is what Telegram looks on Lubuntu:
The programs that show up in the Dash, desktop menus etc are there due to .desktop
files in /usr/share/applications
& ~/.local/share/applications
. You can easily make a launcher using a file similar to this in either of the above locations (named telegram.desktop
or similar):
[Desktop Entry]
Encoding=UTF-8
Name=Telegram
Exec=/opt/Telegram/Telegram -- %u
Icon=/opt/Telegram/telegram128.png
Type=Application
Categories=Network;
MimeType=x-scheme-handler/tg;
Note that the Exec
line should contain the command to launch the app (like the one you used in Terminal) - this can be like telegram
, /usr/bin/telegram-cli
, /opt/Telegram/Telegram
etc.
The Icon
line points to the icon to use - this can be telegram
(if there is are appropriately named icons in ~/.local/share/icons
or /usr/share/applications
), or point to a icon file directly. (e.g. /opt/Telegram/telegram128.png
.). If you need a icon I have uploaded one here.
If the file does not show, try running one of these commands:
update-desktop-database /usr/share/applications
update-desktop-database ~/.local/share/applications
depending on where you placed the file. A restart of the desktop (or logging out and back in again) may be necessary. A similar process can be done for other applications.
The spec for a .desktop file can be found here: http://standards.freedesktop.org/desktop-entry-spec/latest/
Best Answer
Since you installed telegram from the PPA, it is likely installed in
/opt
. Probably under/opt/telegram
. You should be able to launch it from the command-line by running:but if you wanted to make this easier you can create a symbolic link to
/usr/local/bin
like so:you can then launch telegram with the command: