Telegram is one of the most popular and used messaging apps in the tech world right now, and this is all because of the features and functions it has dubbed inside.

One of the unique features of this messaging app is its cloud-based service which enables users to create a backup of their texts or messages quickly; the other one is the strong encryption, which is probably the most required part of any messaging app by the users.

Linux can remove the GUI part of any app and use it just through the command line, and like that, Telegram could also be used in such a way.

Steps to Use Telegram From Linux Command Line

Just for fun, if you also wish to run telegram on Linux through the command line, you must follow some steps. In this article, we have written the method; check it out.

1. First of all, download the tool named telegram-cli to your Linux using the commands:

"sudo apt-get install git libreadline-dev
libconfig-dev libssl-dev lua5.2-dev
libevent-dev libjansson-dev
libpython-dev
make git clone
--recursive https://github.com /vysheng/tg.git &&
cd tg /configure
sudo make"

telegram-cli

2. Launch the tool that you have just downloaded to your device through the above commands by executing another command:

"cd bin
sudo./telegram-cli"

You could probably face some errors while trying this command, and if this happens more times, comment the line number 101 in the “tgl/mtproto-utils.c” file and then try again the command, and it shall work properly.

3. This app works with phone numbers, so you will have to provide yours; take note of that and give the working number because you will get the verification code using the tool. After filling in the code you got on your mobile, this tool will be all set to run, and you could then use Telegram through the command line.

4. Use some of the basic commands which you will require to use to run the telegram:

msg [contact_name] [text] "this command helps to send your message to the particular contact"

fwd [user] [msg-seqno] "forwards message to the other contacts of your wish"

chat_with_peer [contact_name] " start up the chat with particular contact"

add_contact [phone-number] [first-name] [last-name] "add new contact to your list"

rename_contact [user] [first-name] [last-name] " rename any contact"

mark_read [contact_name] " marks all messages received as read"

delete_msg [msg-seqno] "deletes the message"

restore_msg [msg-seqno] " restores deleted messages"

tgl/mtproto-utils.c

This is the easiest way to easily run the Telegram app using the commands on Linux and perform every related task to the app just from the commands. If this article helped you, make sure to share it with your friends.