This has been authorised by all copyright holders. All previous licenses have been revoked! Nobody may copy or use this project without following the terms of the AGPLv3, as set out in the LICENSE file.
Hey, welcome to our userbot!
TL;DR run on a Linux PC or in Termux:
$SHELL <(curl -Ls https://raw.githubusercontent.com/friendly-telegram/friendly-telegram/master/install.sh)
All of the setup instructions are in this README, read carefully!
First of all, this bot requires Python 3 (minimum 3.5) and a modern-ish OS (preferably Linux-based)
Step by step explanation:
-
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 libcairo2
# Utilities
sudo apt install neofetch
# UI
sudo apt install dialog
- Clone the source code
cd
git clone https://github.com/friendly-telegram/friendly-telegram
cd friendly-telegram
- Install requirements
python3 -m pip install cryptg
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
cd ~/friendly-telegram
python3 -m friendly-telegram
Try typing .help in any Telegram chat while the bot is running
Use Termux
pkg install git python libjpeg-turbo zlib libwebp libffi build-essential dialog neofetch
git clone https://github.com/friendly-telegram/friendly-telegram
cd friendly-telegram
pip install cryptg
pip install -r requirements.txt
# For setup
python -m friendly-telegram --setup
# And again for actual execution
python -m friendly-telegram
Make sure to enable the wakelock from Termux notification, especially on MIUI
- All terminal related features don't work. I'll fix it later.
-
Setup 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
- libwebp -> https://github.com/webmproject/libwebp
- libjpeg -> https://github.com/LuaDist/libjpeg
Run as usual but with --heroku
argument and it will guide you through upload. Note that if it seems to have hung, don't kill it. It's still running.
These are basically just Linux. They will work with some effort to get the API token and session file over.
-
Install python3 from https://python.org
-
Download this project
-
Open a powershell window in the root of this project
-
Run
python -m pip install -r requirements.txt
-
Run
python -m friendly-telegram
-
Enter your API hash & ID from my.telegram.org
-
Rerun
python -m friendly-telegram
-
Enter you phone number
-
(optionally) if you want to install to Heroku, download git-scm, selecting the recommended options in the installer
-
(optionally) if you want to install to Heroku, run
python -m friendly-telegram --heroku