telegram-cli command not found

In this troubleshooting guide we learn how to fix telegram-cli command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

telegram-cli: command not found

or when using sudo you get the following error message

sudo: telegram-cli: command not found

Solutions to telegram-cli: command not found

How To Fix telegram-cli: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu telegram-cli is provided by telegram-cli package.

telegram-cli is:

Telegram messenger is a cloud-based instant messaging designed for smart phones and similar to Whatsapp but more flexible, and powerful. You can send messages, photos, videos and documents to people who are in your phone contacts (and have Telegram). Telegram also supports secret chats whose provide a private (encrypted) way of communication.

This package contains a command-line based client for Telegram with the following features:

  • Colored terminal messages.
  • Message management: history, stats, etc.
  • Group chat: create and manage groups.
  • Secret chat: secured and encrypted conversations.
  • Contact management: add/edit/remove contacts.
  • Multimedia support: send/load photos and videos.

To fix this problem, we can install more using the command below.

sudo apt-get -y install telegram-cli

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install telegram-cli.

sudo apt -y install telegram-cli

Or if you have aptitude installed you can use the following command.

sudo aptitude install telegram-cli

Summary

In this tutorial we learn how to fix telegram-cli command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.