From b1fa504418eb3b3be864f8f71990814de88474af Mon Sep 17 00:00:00 2001 From: Lonami Date: Mon, 25 Jun 2018 09:27:46 +0200 Subject: [PATCH] Destroyed Installing Telethon (markdown) --- Installing-Telethon.md | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 Installing-Telethon.md diff --git a/Installing-Telethon.md b/Installing-Telethon.md deleted file mode 100644 index 9dfe061..0000000 --- a/Installing-Telethon.md +++ /dev/null @@ -1,31 +0,0 @@ -``` -# pip install telethon -``` - -If you get something like `"SyntaxError: invalid syntax"` or any other error while installing, it's probably because `pip` defaults to Python 2, which is **not supported**. Use `pip3` instead. - -If you already have the library installed, upgrade with `pip install --upgrade telethon`. - -You can also install the library directly from GitHub or a fork: -``` -# pip install git+https://github.com/LonamiWebs/Telethon.git -or -$ git clone https://github.com/LonamiWebs/Telethon.git -$ cd Telethon/ -# pip install -Ue . -``` - -If you don't have root access, simply pass the `--user` flag to the `pip` command. - -## Manual installation - -1. Install the required `pyaes` ([GitHub](https://github.com/ricmoo/pyaes)|[PyPi](https://pypi.python.org/pypi/pyaes)) and `rsa` ([GitHub](https://github.com/sybrenstuvel/python-rsa/)|[PyPi](https://pypi.python.org/pypi/rsa/3.4.2)) modules: `sudo -H pip install pyaes rsa` -2. Clone Telethon's GitHub repository: ``git clone https://github.com/LonamiWebs/Telethon.git`` -3. Enter the cloned repository: ``cd Telethon`` -4. Run the code generator: ``python3 setup.py gen_tl`` -5. Done! - -To generate the documentation, `cd docs` and then `python generate.py`. - -## Optional dependencies -If `libssl` is available on your system, it will be used wherever encryption is needed, but otherwise it will fall back to pure Python implementation so it will also work without it. \ No newline at end of file