Now, let's get down to the details. These are the steps (I'll repeat the steps in the linked article above for completeness sake):
- In order to make sure you have enough /tmp for the compilation, you can enlarge your /tmp as explained in this post (basically edit /etc/fstab and unmount, remount /tmp or reboot your Raspberry Pi to be sure).
- Install the needed libraries in your Raspbian:
sudo apt-get install libreadline-dev libconfig-dev libssl-dev libevent-dev
I leave all Lua-related stuff out because we don't need it. - Next, let's clone Telegram CLI from github:
[your_home_dir]: git clone --recursive https://github.com/vysheng/tg.git && cd tg
-
Now, let's make a build directory in order not to clutter the source code with intermediate object files there.
[your_home_dir]/tg: mkdir build && cd build
- Now carry out the compilation there. Remember to disable lua:
[your_home_dir]/tg/build: ../configure --disable-liblua [your_home_dir]/tg/build: make
Grab yourself some coffee to wait for the compilation to complete.
/exitIn the current telegram-cli session. You can just type "/" then "TAB" to see the options available to you. It also confuse me how to quit when I first uses Telegram CLI ;-)