Manual Installation
This is split into several methods, one for each supported OS.
Debian-like Linux
- Update package list
sudo apt update
- Install required packages
sudo apt install python3 python3-pip git
- Install optional modular dependencies (required for some modules)
# Pillow for stickers/kang sudo apt install python3-dev libwebp-dev libz-dev libjpeg-dev libopenjp2-7 libtiff5 # Cairo for animated stickers sudo apt install libffi-dev libcairo2 # Utilities sudo apt install neofetch # UI sudo apt install dialog
- Clone the source code
cd git clone https://gitlab.com/friendly-telegram/friendly-telegram cd friendly-telegram
- Install requirements
python3 -m pip install -r requirements.txt
Follow the instructions written here to get your API key/hash and ID
- Run the configuration script
python3 -m friendly-telegram --setup
On the newly opened menu, select “API Key/hash and ID” When prompted, enter your API key/hash and ID
- Launch the bot:
cd ~/friendly-telegram python3 -m friendly-telegram
Termux
pkg install git python libjpeg-turbo zlib libwebp libffi libcairo build-essential dialog neofetch
git clone https://gitlab.com/friendly-telegram/friendly-telegram
cd friendly-telegram
pip install -r requirements.txt
# For setup
python -m friendly-telegram --setup
# And again for actual execution
python -m friendly-telegram
Windows
Install Git from the website. Make sure to add Git to the PATH
Install Python from the website. Make sure to add Python to the PATH
Open a Windows Powershell window tutorial.
Follow the instructions written here to get your API key/hash and ID
- Type:
git clone https://gitlab.com/friendly-telegram/friendly-telegram cd friendly-telegram python3 -m pip install -r requirements.txt python3 -m friendly-telegram
Enter the API hash and ID when prompted (note the menu is a little archeic on Windows, read everything the program outputs to get a better understanding)
- Type
python -m friendly-telegram
once more to activate the bot
Mac OS X
- Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install required packages
brew install python3 git
- Install optional modular dependencies (required for some modules)
# Utilities brew install neofetch # UI brew install dialog
- Manually build the following repos (only required for sticker support):
- libwebp -> https://github.com/webmproject/libwebp
- libjpeg -> https://github.com/LuaDist/libjpeg
Follow the instructions written here to get your API key/hash and ID
- Type:
git clone https://gitlab.com/friendly-telegram/friendly-telegram cd friendly-telegram python -m pip install -r requirements.txt python -m friendly-telegram
Enter your API hash and ID when prompted
- Type
python -m friendly-telegram
once more to activate the bot