No description
Find a file
Nameless c247b119c6
Merge pull request #25 from paul-nameless/update-readme
Update documentation with instructions about how to run tg
2020-05-09 18:48:50 +08:00
.github/workflows Black formatting update 2020-05-04 15:24:40 +08:00
tg Merge pull request #24 from paul-nameless/suspend-refresh 2020-05-09 18:48:36 +08:00
.gitignore correctly handle situation when there are chats with all deleted msgs 2020-05-03 21:44:54 +03:00
pyproject.toml Format with black 2020-05-04 15:01:24 +08:00
README.md Update documentation with instructions about how to run tg 2020-05-09 14:34:02 +08:00
UNLICENSE Reorganize structure of the project 2019-02-20 19:15:43 +01:00

tg

Console telegram client.

(!) currently in development

More documentation and plans for this project at wiki

Requirements

  • tdlib For macOS:
    brew install tdlib
    
  • python3.8
  • pip3 install python-telegram
  • config file at ~/.config/tg/tg.conf
    [DEFAULT]
    api_id = [api id]
    api_hash = [api hash]
    phone = [phone]
    enc_key = [random key for encrypting your database]
    notify_cmd = /usr/local/bin/terminal-notifier -title "{title}" -subtitle "{subtitle}" -message "{msg}" -appIcon "{icon_path}" -sound default
    
    Where:
    • app_id and api_hash is keys from telegram
    • phone your phone number (or login)
    • notify_cmd can be any executable

Usage

Clone repository and run it

git clone git@github.com:paul-nameless/tg.git
cd tg
PYTHONPATH=. python3 tg/main.py