Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Latest commit

 

History

History
138 lines (108 loc) · 3.55 KB

installing_advanced.md

File metadata and controls

138 lines (108 loc) · 3.55 KB

Manual installation

This is split into several methods, one for each supported OS.

Debian-like Linux

  1. Update package list
sudo apt update
  1. Install required packages
sudo apt install python3 python3-pip git
  1. 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
  1. Clone the source code
cd
git clone https://github.com/friendly-telegram/friendly-telegram
cd friendly-telegram
  1. Install requirements
python3 -m pip install -r optional-requirements.txt
python3 -m pip install -r mandatory-requirements.txt
  1. Follow the instructions written here to get your API key/hash and ID

  2. Run the configuration script

python3 -m friendly-telegram --setup
  1. On the newly opened menu, select "API Key/hash and ID" When prompted, enter your API key/hash and ID

  2. 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://github.com/friendly-telegram/friendly-telegram
cd friendly-telegram
pip install -r optional-requirements.txt
pip install -r mandatory-requirements.txt
# For setup
python -m friendly-telegram --setup
# And again for actual execution
python -m friendly-telegram

Windows

  1. Install Git from the website. Make sure to add Git to the PATH

  2. Install Python from the website. Make sure to add Python to the PATH

  3. Open a Windows Powershell window tutorial.

  4. Follow the instructions written here to get your API key/hash and ID

  5. Type:

git clone https://github.com/friendly-telegram/friendly-telegram
cd friendly-telegram
python3 -m pip install -r requirements.txt
python3 -m friendly-telegram
  1. 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)

  2. Type

python -m friendly-telegram

once more to activate the bot

Mac OS X

  1. Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install required packages
brew install python3  git
  1. Install optional modular dependencies (required for some modules)
# Utilities
brew install neofetch
# UI
brew install dialog
  1. Manually build the following repos (only required for sticker support):
  1. Follow the instructions written here to get your API key/hash and ID

  2. Type:

git clone https://github.com/friendly-telegram/friendly-telegram
cd friendly-telegram
python -m pip install -r requirements.txt
python -m friendly-telegram
  1. Enter your API hash and ID when prompted

  2. Type

python -m friendly-telegram

once more to activate the bot