Skip to content

Commit 94cdaf4

Browse files
committed
update for pytg 0.4.10
new result for load_*
1 parent bc80024 commit 94cdaf4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ncTelegram/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ def download_media(self, msg):
150150
mid = msg['id']
151151

152152
if mtype == 'photo':
153-
file = self.sender.load_photo(mid)['result']
153+
file = self.sender.load_photo(mid)
154154

155155
elif mtype == 'document':
156-
file = self.sender.load_document(mid)['result']
156+
file = self.sender.load_document(mid)
157157
else:
158158
file = None
159159

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from distutils.core import setup
44

55
setup(name='ncTelegram',
6-
version='0.9.3',
6+
version='0.9.4',
77
description='A curse Telegram client',
88
license='GPLv3',
99
author='Sébastien Lemaire',
@@ -12,6 +12,6 @@
1212
scripts=['nctelegram'],
1313
data_files=[('/etc', ['ncTelegram.conf']),
1414
('/usr/share/ncTelegram', ['t_logo.png']),],
15-
install_requires=["pytg>=0.4.6"]
15+
install_requires=["pytg>=0.4.10"]
1616

1717
)

0 commit comments

Comments
 (0)