Commit 1509f30 1 parent a84e1b5 commit 1509f30 Copy full SHA for 1509f30
File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ A ncurses Telegram client developed in Python with the urwid library.
11
11
* [ Telegram-cli] ( https://github.com/vysheng/tg )
12
12
* [ urwid] ( http://urwid.org )
13
13
* [ pytg] ( https://github.com/luckydonald/pytg )
14
+ * python-psutil
14
15
* libnotify (optional)
15
16
* caca-utils (optional)
16
17
@@ -33,7 +34,7 @@ $ pacaur -y nctelegram-git
33
34
Install dependencies:
34
35
35
36
```
36
- $ sudo dnf install telegram-cli python -urwid
37
+ $ sudo dnf install telegram-cli python3 -urwid python3-psutil
37
38
```
38
39
39
40
Install ncTelegram through pip:
@@ -54,7 +55,7 @@ To install telegram-cli just follow its [readme](https://github.com/vysheng/tg).
54
55
Install urwid:
55
56
56
57
```
57
- $ sudo apt-get install python3-urwid
58
+ $ sudo apt-get install python3-urwid python3-psutil
58
59
```
59
60
60
61
Install ncTelegram through pip:
Original file line number Diff line number Diff line change 2
2
import os
3
3
import sys
4
4
import subprocess
5
+ import psutil
5
6
import os .path
6
7
import configparser
7
8
8
9
import ncTelegram
9
- import psutil
10
10
11
11
12
12
13
- # Check if telegram-cli is already running on the same port
14
- list_connection = [ i [4 ] for i in psutil .net_connections () ]
15
- for connection in list_connection :
16
- if connection and connection [1 ] == 4458 :
13
+ for connection in psutil .net_connections ():
14
+ if connection [4 ] and connection [4 ][1 ] == 4458 :
17
15
print ('telegram-cli is already running, kill it before starting ncTelegram' )
18
16
sys .exit (1 )
19
17
Original file line number Diff line number Diff line change 3
3
from distutils .core import setup
4
4
5
5
setup (name = 'ncTelegram' ,
6
- version = '0.9.5 ' ,
6
+ version = '0.9.6 ' ,
7
7
description = 'A curse Telegram client' ,
8
8
license = 'GPLv3' ,
9
9
author = 'Sébastien Lemaire' ,
You can’t perform that action at this time.
0 commit comments