mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 20:03:17 +00:00
No description
e44149cae8
Proccess msg & chat updates |
||
---|---|---|
.github/workflows | ||
tg | ||
.gitignore | ||
pyproject.toml | ||
README.md | ||
UNLICENSE |
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
Where:[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 record_cmd = ffmpeg -f avfoundation -i ":0" '{file_path}'
app_id
andapi_hash
is keys from telegramphone
your phone number (or login)notify_cmd
can be any executablerecord_cmd
command to record audio (example for macOS)
Usage
Clone repository and run it
git clone git@github.com:paul-nameless/tg.git
cd tg
PYTHONPATH=. python3 tg/main.py